Esempio n. 1
0
 public void ThenContactDetailsAreAvailable()
 {
     _browsers[_c.CurrentUser].Driver.WaitForPageToLoad();
     _browsers[_c.CurrentUser].ClickLink(CommonServiceWebPage.ContactLink);
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ElementContainingText(_c.WebConfig.TestConfig.CommonData.CommonOnScreenData.VhoPhone)).Displayed.Should().BeTrue();
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ElementContainingText(_c.WebConfig.TestConfig.CommonData.CommonOnScreenData.VhoEmail)).Displayed.Should().BeTrue();
 }
        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));
        }
Esempio n. 3
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
     });
 }
Esempio n. 5
0
 public void WhenAttemptsToClickContinueWithoutSelectingAnAnswer(string innerText)
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText));
 }
Esempio n. 6
0
 public void WhenTheUserClicksTheLink(string linkText)
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.LinkWithText(linkText)).Displayed.Should().BeTrue();
     _browsers[_c.CurrentUser].ClickLink(CommonLocators.LinkWithText(linkText));
 }
Esempio n. 7
0
 public void WhenTheUserSelectsTheRadiobutton(string label)
 {
     _browsers[_c.CurrentUser].ClickRadioButton(CommonLocators.RadioButtonWithLabel(label));
     _browsers[_c.CurrentUser].Driver.WaitUntilElementExists(CommonLocators.RadioButtonWithLabel(label)).Selected.Should().BeTrue();
 }
 public static By ConsultationRoomCloseText(string closeTime) => CommonLocators.ElementContainingText($"The consultation room will close at {closeTime}");
 public void ThenContactDetailsAreAvailableOnTheCheckingVideoHearingPage()
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ElementContainingText(_c.WebConfig.TestConfig.CommonData.CommonOnScreenData.VhoPhone))
     .Displayed.Should().BeTrue();
 }
 public CommonResults(FeatureContext featureContext)
 {
     this.featureContext = featureContext;
     this.commonLocators = new CommonLocators(featureContext);
 }
Esempio n. 11
0
 public void GivenMockupOfGooglePageIsOpened()
 {
     CommonLocators.NavigateToPage(BaseSettings.DemoSiteUrl);
 }
 public NavigationStepsBase(FeatureContext featureContext)
 {
     this.featureContext = featureContext;
     this.commonLocators = new CommonLocators(featureContext);
 }
Esempio n. 13
0
 public static By ContactUsPhone(string phone) => CommonLocators.ElementContainingText(phone);
Esempio n. 14
0
 public void WhenTheUserClicksTheChangeCameraOrMicrophoneLink(UserBrowser browser, string linkText)
 {
     browser.Driver.WaitUntilVisible(CommonLocators.LinkWithText(linkText)).Displayed.Should().BeTrue();
     browser.ClickLink(CommonLocators.LinkWithText(linkText));
 }
Esempio n. 15
0
 public void WhenTheUserSelectsTheRadiobutton(UserBrowser browser, string label)
 {
     browser.ClickRadioButton(CommonLocators.RadioButtonWithLabel(label));
     browser.Driver.WaitUntilElementExists(CommonLocators.RadioButtonWithLabel(label)).Selected.Should().BeTrue();
 }
Esempio n. 16
0
 public void WhenTheUserClicksTheButton(UserBrowser browser, string label)
 {
     browser.Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).Displayed.Should().BeTrue();
     browser.Click(CommonLocators.ButtonWithInnerText(label));
 }
 public static By ContactUsEmail(string email) => CommonLocators.ElementContainingText(email);
Esempio n. 18
0
 public static By JudgeUserParticipantsList(string username) => CommonLocators.ElementContainingText(username);
Esempio n. 19
0
 public void ThenAMessageAppearsStating(string message)
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ElementContainingText(message)).Displayed.Should().BeTrue();
 }
Esempio n. 20
0
 public static By Date(string date) => CommonLocators.ElementContainingText(date);
 public void WhenTheUserAnswersNoToTheCheckYourComputerQuestion()
 {
     _browsers[_c.CurrentUser].ClickRadioButton(CommonLocators.RadioButtonWithLabel("No"));
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Continue"));
 }
Esempio n. 22
0
 public static By PhoneNumber(string phoneNumber) => CommonLocators.ElementContainingText(phoneNumber);
 public static By ExtendedAnswer(string extendedAnswer) => CommonLocators.ElementContainingText(extendedAnswer);
Esempio n. 24
0
 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 ProgressToNextPage()
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText("Next"));
 }
Esempio n. 26
0
 public void ThenTheButtonIsDisabled(string label)
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ButtonWithInnerText(label)).GetAttribute("class").Should().Contain("disabled");
 }
 public CommonActions(FeatureContext featureContext)
 {
     this.featureContext = featureContext;
     this.locators       = new CommonLocators(featureContext);
 }
Esempio n. 28
0
 public void WhenTheUserClicksTheButton(string innerText)
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText));
 }