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");
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 5
0
 public void WhenTheUserClicksTheChangeCameraOrMicrophoneLink(UserBrowser browser, string linkText)
 {
     browser.Driver.WaitUntilVisible(CommonLocators.LinkWithText(linkText)).Displayed.Should().BeTrue();
     browser.ClickLink(CommonLocators.LinkWithText(linkText));
 }