public override PluginExecutionResult PerformAction(int cancelScreen)
        {
            WaitForAvailable(5);
            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 (NextButton7196Button.Click() != ResultCode.Passed)
            {
                return(new PluginExecutionResult(PluginResult.Failed, "Failed to proceed beyond data collection screen"));
            }

            if (VerifyInternetText.IsVisible(5))
            {
                if (ErrorConnectionWindow.IsVisible(10))
                {
                    OkErrorButton.Click(5);
                }
            }

            return(new PluginExecutionResult(PluginResult.Passed));
        }
示例#2
0
        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));
        }
        public override PluginExecutionResult PerformAction(int cancelScreen)
        {
            WaitForAvailable(5);
            if (cancelScreen == ScreenIndex)
            {
                if (CancelButton713Button.Click() != ResultCode.Passed)
                {
                    return(new PluginExecutionResult(PluginResult.Failed, $"Failed to cancel installation at {ScreenName}"));
                }

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

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

            return(new PluginExecutionResult(PluginResult.Passed));
        }
 public void WaitForAvailable(int timeout)
 {
     HPDigitalSendinWindow.WaitForAvailable(timeout);
     NextButton7196Button.WaitForAvailable(timeout);
 }