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