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)); }
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")); }
public void WhenAttemptsToClickContinueWithoutSelectingAnAnswer(string innerText) { _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText)); }
public void WhenTheUserClicksTheButton(string innerText) { _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText)); }
public void ThenTheButtonIsDisabled(string label) { _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).GetAttribute("class").Should().Contain("disabled"); }
public void WhenTheUserClicksTheButton(string label) { _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).Displayed.Should().BeTrue(); _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(label)); }
public void WhenTheUserClicksTheButton(UserBrowser browser, string label) { browser.Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).Displayed.Should().BeTrue(); browser.Click(CommonLocators.ButtonWithInnerText(label)); }