/// <summary> /// Presses the solution button. /// </summary> /// <param name="menuName">Name of the menu.</param> /// <param name="solutionName">Name of the solution.</param> /// <exception cref="DeviceWorkflowException">Unable to find and press the solution button " + solutionName</exception> public void PressSolutionButton(string menuName, string solutionName) { if (_controlPanel.WaitForDisplayedText(menuName, TimeSpan.FromSeconds(6))) { _controlPanel.WaitForVirtualButton(solutionName, TimeSpan.FromSeconds(6)); _controlPanel.Press(solutionName); Thread.Sleep(1000); } else { throw new DeviceWorkflowException("Unable to find and press the solution button " + solutionName); } }
/// <summary> /// Launches the Email application on the device. /// </summary> public void Launch() { try { _controlPanel.Press(_executionManager.ScanButton); if (_controlPanel.WaitForDisplayedText("Scan Menu", TimeSpan.FromSeconds(6))) { _controlPanel.Press("cEmailUiEmailDocument"); } Pacekeeper.Pause(); if (_controlPanel.WaitForDisplayedText("Scan to E-mail", TimeSpan.FromSeconds(6))) { _controlPanel.Press("cSendAnEmail"); } } catch (PhoenixInvalidOperationException ex) { throw new DeviceWorkflowException($"Could not launch Email application: {ex.Message}", ex); } }
/// <summary> /// Launches the Network Folder application on the device. /// </summary> public void Launch() { try { _controlPanel.Press(_executionManager.ScanButton); if (_controlPanel.WaitForDisplayedText("Scan Menu", TimeSpan.FromSeconds(3))) { _controlPanel.Press("cScanToNetworkFolder"); } Pacekeeper.Pause(); } catch (PhoenixInvalidOperationException ex) { throw new DeviceWorkflowException($"Could not launch Select network folder page: {ex.Message}", ex); } }