コード例 #1
0
ファイル: DSS_License.cs プロジェクト: ProjectAgri20/newrepo
        public override PluginExecutionResult PerformAction(int cancelScreen)
        {
            WaitForAvailable(20);
            if (cancelScreen == ScreenIndex)
            {
                if (CancelButton713Button.Click() != ResultCode.Passed)
                {
                    return(new PluginExecutionResult(PluginResult.Failed, $"Failed to cancel installation at { (object)ScreenName}"));
                }

                return(new PluginExecutionResult(PluginResult.Skipped, $"Cancelled the installation at {ScreenName}"));
            }

            if (IacceptthetermsRadioButton.Select(5) != ResultCode.Passed)
            {
                return(new PluginExecutionResult(PluginResult.Failed, "Failed to accept the terms and condition"));
            }

            if (NextButton7196Button.IsAvailable(5))
            {
                if (NextButton7196Button.Click() != ResultCode.Passed)
                {
                    return(new PluginExecutionResult(PluginResult.Failed, "Failed to proceed beyond license acceptance screen"));
                }
            }

            return(new PluginExecutionResult(PluginResult.Passed));
        }
コード例 #2
0
ファイル: DSS_License.cs プロジェクト: ProjectAgri20/newrepo
 public void WaitForAvailable(int timeout)
 {
     HPDigitalSendinWindow.WaitForAvailable(timeout);
     IacceptthetermsRadioButton.WaitForAvailable(timeout);
 }