/// <summary> /// Sets the copy count. /// </summary> /// <param name="numCopies">The number copies.</param> public override void SetCopyCount(int numCopies) { ProcessCopyCount(); Thread.Sleep(1000); _controlPanel.Type(SpecialCharacter.Backspace); _controlPanel.Type(numCopies.ToString()); // The name of the OK button differs depending on the screen resolution string okButton = _controlPanel.GetControls().Contains("ok") ? "ok" : "mOkButton"; // moved to press wait to handle the no click event within five (5) seconds _controlPanel.PressWait(okButton, JediWindjammerLaunchHelper.OxpdFormIdentifier, StringMatch.Contains, TimeSpan.FromSeconds(6)); }
/// <summary> /// Sets the copy count. /// </summary> /// <param name="numCopies">The number copies.</param> public override void SetCopyCount(int numCopies) { LogDebug("Setting Copy count for Windjammer."); if (IsNewVersion()) { LogInfo("SafeComGo new version"); ProcessCopyCount(); } else { LogInfo("SafeCom server 2016 version"); ProcessCopyCount("buttonText"); } Thread.Sleep(1000); _controlPanel.Type(SpecialCharacter.Backspace); _controlPanel.Type(numCopies.ToString()); // The name of the OK button differs depending on the screen resolution string okButton = _controlPanel.GetControls().Contains("ok") ? "ok" : "mOkButton"; // moved to press wait to handle the no click event within five (5) seconds _controlPanel.PressWait(okButton, JediWindjammerLaunchHelper.OxpdFormIdentifier, StringMatch.Contains, TimeSpan.FromSeconds(6)); }