public void ProgressToNextPage()
        {
            _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Switch on"));
            var buttonText = _c.CurrentUser.UserType == UserType.Individual ? "Watch the video" : "Test equipment";

            _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(buttonText));
        }
示例#2
0
 public void ProgressToNextPage()
 {
     _browsers[_c.CurrentUser].ClickRadioButton(CommonLocators.RadioButtonWithLabel(_c.WebConfig.TestConfig.TestData.CameraWorking));
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Continue"));
     _c.Test.Answers.Add(new SuitabilityAnswer {
         Answer = _c.WebConfig.TestConfig.TestData.CameraWorking, ExtendedAnswer = null, QuestionKey = SelfTestQuestionKeys.SeeYourselfQuestion
     });
 }
 public void ProgressToNextPage()
 {
     _browsers[_c.CurrentUser].Driver.WaitForPageToLoad();
     _browsers[_c.CurrentUser].ClickRadioButton(CommonLocators.RadioButtonWithLabel(_c.WebConfig.TestConfig.TestData.CheckYourComputer));
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Continue"));
     _c.Test.Answers.Add(new SuitabilityAnswer {
         Answer = _c.WebConfig.TestConfig.TestData.CheckYourComputer, ExtendedAnswer = null, QuestionKey = SelfTestQuestionKeys.CheckYourComputerQuestion
     });
 }
 public void ProgressToNextPage()
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Next"));
 }
 public void WhenTheUserAnswersNoToTheCheckYourComputerQuestion()
 {
     _browsers[_c.CurrentUser].ClickRadioButton(CommonLocators.RadioButtonWithLabel("No"));
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Continue"));
 }
示例#6
0
 public void WhenAttemptsToClickContinueWithoutSelectingAnAnswer(string innerText)
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText));
 }
示例#7
0
 public void WhenTheUserClicksTheButton(string innerText)
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText));
 }
示例#8
0
 public void ThenTheButtonIsDisabled(string label)
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).GetAttribute("class").Should().Contain("disabled");
 }
示例#9
0
 public void WhenTheUserClicksTheButton(string label)
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).Displayed.Should().BeTrue();
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(label));
 }
示例#10
0
 public void WhenTheUserClicksTheButton(UserBrowser browser, string label)
 {
     browser.Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).Displayed.Should().BeTrue();
     browser.Click(CommonLocators.ButtonWithInnerText(label));
 }