private void SignOut() { try { _browser.ClickLink(CommonPages.SignOutLink, 2); _browser.Driver.WaitUntilVisible(CommonPages.SignOutMessage).Displayed.Should().BeTrue(); } catch { NUnit.Framework.TestContext.WriteLine($"Attempted to sign out but link no longer visible"); } }
public void ProgressToNextPage() { _browser.ClickLink(SummaryPage.BackLink); _browserSteps.ThenTheUserIsOnThePage("create hearings"); }
public void GivenTheUserHasProgressedToTheCreateHearingsPage() { _browserSteps.GivenANewBrowserIsOpenForAUser(UserType.Tester.ToString()); _loginSteps.ProgressToNextPage(); _browser.ClickLink(HeaderPage.CreateHearingsLink); }
public void WhenTheUserAttemptsToLogout() { _browser.ClickLink(CommonPages.SignOutLink); _browser.ClickLink(CommonPages.SignInLink); ThenTheUserShouldBeNavigatedToSignInScreen(); }
public void WhenTheUserClicksTheChangeCameraOrMicrophoneLink(UserBrowser browser, string linkText) { browser.Driver.WaitUntilVisible(CommonLocators.LinkWithText(linkText)).Displayed.Should().BeTrue(); browser.ClickLink(CommonLocators.LinkWithText(linkText)); }