예제 #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));
        }
예제 #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
     });
 }
예제 #5
0
 public void WhenAttemptsToClickContinueWithoutSelectingAnAnswer(string innerText)
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText));
 }
예제 #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));
 }
예제 #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);
 }
예제 #11
0
 public void GivenMockupOfGooglePageIsOpened()
 {
     CommonLocators.NavigateToPage(BaseSettings.DemoSiteUrl);
 }
 public NavigationStepsBase(FeatureContext featureContext)
 {
     this.featureContext = featureContext;
     this.commonLocators = new CommonLocators(featureContext);
 }
예제 #13
0
 public static By ContactUsPhone(string phone) => CommonLocators.ElementContainingText(phone);
예제 #14
0
 public void WhenTheUserClicksTheChangeCameraOrMicrophoneLink(UserBrowser browser, string linkText)
 {
     browser.Driver.WaitUntilVisible(CommonLocators.LinkWithText(linkText)).Displayed.Should().BeTrue();
     browser.ClickLink(CommonLocators.LinkWithText(linkText));
 }
예제 #15
0
 public void WhenTheUserSelectsTheRadiobutton(UserBrowser browser, string label)
 {
     browser.ClickRadioButton(CommonLocators.RadioButtonWithLabel(label));
     browser.Driver.WaitUntilElementExists(CommonLocators.RadioButtonWithLabel(label)).Selected.Should().BeTrue();
 }
예제 #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);
예제 #18
0
 public static By JudgeUserParticipantsList(string username) => CommonLocators.ElementContainingText(username);
예제 #19
0
 public void ThenAMessageAppearsStating(string message)
 {
     _browsers[_c.CurrentUser].Driver.WaitUntilVisible(CommonLocators.ElementContainingText(message)).Displayed.Should().BeTrue();
 }
예제 #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"));
 }
예제 #22
0
 public static By PhoneNumber(string phoneNumber) => CommonLocators.ElementContainingText(phoneNumber);
 public static By ExtendedAnswer(string extendedAnswer) => CommonLocators.ElementContainingText(extendedAnswer);
예제 #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"));
 }
예제 #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);
 }
예제 #28
0
 public void WhenTheUserClicksTheButton(string innerText)
 {
     _browsers[_c.CurrentUser].Click(CommonLocators.ButtonWithInnerText(innerText));
 }