/// <summary> /// Enters the name to use for the scanned file. /// </summary> /// <param name="fileName">The file name.</param> public void EnterFileName(string fileName) { var data = _controlPanel.GetDisplayedStrings(); if (data.Contains("Next")) { _controlPanel.Press("cNextTouchButton"); } if (_controlPanel.WaitForVirtualButton(_executionManager.JobSettingsButton, TimeSpan.FromSeconds(6))) { _controlPanel.Press(_executionManager.JobSettingsButton); _controlPanel.WaitForVirtualButton("cScanTouchButton"); data = _controlPanel.GetDisplayedStrings(); if (data.Contains("Edit")) { _controlPanel.Press("cEditTouchButton"); Pacekeeper.Pause(); } _controlPanel.ScrollDown(100); var screenText = _controlPanel.GetDisplayedStrings(); if (screenText.Contains("File Name Prefix")) { _controlPanel.Press("cFilenamePrefix"); _executionManager.DeleteFieldData(); _controlPanel.TypeOnVirtualKeyboard(fileName); Pacekeeper.Pause(); _controlPanel.Press(_executionManager.OkayButton); Pacekeeper.Pause(); } } }
/// <summary> /// Enters the name to use for the scanned file. /// </summary> /// <param name="fileName">The file name.</param> public void EnterFileName(string fileName) { _executionManager.PressSolutionButton("Scan to Network Folder", _executionManager.JobSettingsButton); _controlPanel.ScrollDown(50); _executionManager.PressSolutionButton("File Name Prefix", "cFilenamePrefix"); _executionManager.DeleteFieldData(); _controlPanel.TypeOnVirtualKeyboard(fileName); Thread.Sleep(1000); _controlPanel.Press(_executionManager.OkayButton); Thread.Sleep(1000); }
/// <summary> /// Navigate to wireless page /// </summary> private void NavigateToWireless() { _controlPanel.PressKey(PhoenixSoftKey.Home); do { _controlPanel.ScrollRight(1); }while (!_controlPanel.GetVirtualButtons().Any(x => x.Name == "cSetupHomeTouchButton")); _controlPanel.Press("cSetupHomeTouchButton"); _pacekeeper.Pause(); do { _controlPanel.ScrollDown(50); }while (!_controlPanel.GetVirtualButtons().Any(x => x.Name == "cNetworkConfig")); _controlPanel.Press("cNetworkConfig"); _pacekeeper.Pause(); _controlPanel.Press("cWirelessMenu"); _pacekeeper.Pause(); }