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