public void ThenIShouldBeRedirectedToLogin() { driver.WaitForAjaxElementVisible(By.Id("UserName"), 25); var url = driver.Url; Assert.IsTrue(url.ToLower().Contains(WeNeedUHaveUrls.LoginPage().ToLower())); }
public void WhenINavigateToAnOrganizationProfile() { //Navigate to the site var orgId = ScenarioContext.Current["OrganizationId"].ToString(); driver.Navigate().GoToUrl(WeNeedUHaveUrls.SampleOrganizationPage(orgId)); }
public void WhenIPressAdditionalInformation() { var orgId = ScenarioContext.Current["OrganizationId"].ToString(); driver.Navigate().GoToUrl(WeNeedUHaveUrls.SampleOrganizationPage(orgId)); IWebElement element = driver.FindElement(By.Id(SubscriptionDOMElements.AdditionalInformationTabLinkId)); element.SendKeys(Keys.Enter); }
public void INavigateToTheSubscriptionPage() { var orgId = ScenarioContext.Current["OrganizationId"].ToString(); driver.Navigate().GoToUrl(WeNeedUHaveUrls.SubscriptionPage(orgId)); }
public void ThenIShouldSeeAWorkflowPage() { var url = driver.Url; Assert.IsTrue(url.ToLower().Contains(WeNeedUHaveUrls.OrganizationSignUpPage().ToLower())); }
public void ThenIShouldBeOnTheRegisterPage() { var url = driver.Url; Assert.IsTrue(url.ToLower().Contains(WeNeedUHaveUrls.RegisterPage().ToLower())); }
public void WhenIVerifyAnAccount() { var token = ScenarioContext.Current["VerifyToken"].ToString(); driver.Navigate().GoToUrl(WeNeedUHaveUrls.VerifyAccount(token)); }
public void WhenIRegisterAnAccountFromTheCouponPage() { driver.Navigate().GoToUrl(WeNeedUHaveUrls.CouponPage()); FillOutRegistrationForm(); }
public void WhenINavigateToContact() { driver.Navigate().GoToUrl(WeNeedUHaveUrls.HelpPage()); }
public void WhenINavigateToAbout() { driver.Navigate().GoToUrl(WeNeedUHaveUrls.AboutPage()); }
public void WhenIRequestToGoToMyAccount() { driver.Navigate().GoToUrl(WeNeedUHaveUrls.AccountPage()); }
public void WhenIVerifyAPassword() { var token = ScenarioContext.Current["PasswordVerifyToken"].ToString(); driver.Navigate().GoToUrl(WeNeedUHaveUrls.VerifyPassword(token)); }