Esempio n. 1
0
        public void ThenIShouldBeRedirectedToLogin()
        {
            driver.WaitForAjaxElementVisible(By.Id("UserName"), 25);
            var url = driver.Url;

            Assert.IsTrue(url.ToLower().Contains(WeNeedUHaveUrls.LoginPage().ToLower()));
        }
Esempio n. 2
0
        public void WhenINavigateToAnOrganizationProfile()
        {
            //Navigate to the site
            var orgId = ScenarioContext.Current["OrganizationId"].ToString();

            driver.Navigate().GoToUrl(WeNeedUHaveUrls.SampleOrganizationPage(orgId));
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public void INavigateToTheSubscriptionPage()
        {
            var orgId = ScenarioContext.Current["OrganizationId"].ToString();

            driver.Navigate().GoToUrl(WeNeedUHaveUrls.SubscriptionPage(orgId));
        }
Esempio n. 5
0
        public void ThenIShouldSeeAWorkflowPage()
        {
            var url = driver.Url;

            Assert.IsTrue(url.ToLower().Contains(WeNeedUHaveUrls.OrganizationSignUpPage().ToLower()));
        }
Esempio n. 6
0
        public void ThenIShouldBeOnTheRegisterPage()
        {
            var url = driver.Url;

            Assert.IsTrue(url.ToLower().Contains(WeNeedUHaveUrls.RegisterPage().ToLower()));
        }
Esempio n. 7
0
        public void WhenIVerifyAnAccount()
        {
            var token = ScenarioContext.Current["VerifyToken"].ToString();

            driver.Navigate().GoToUrl(WeNeedUHaveUrls.VerifyAccount(token));
        }
Esempio n. 8
0
 public void WhenIRegisterAnAccountFromTheCouponPage()
 {
     driver.Navigate().GoToUrl(WeNeedUHaveUrls.CouponPage());
     FillOutRegistrationForm();
 }
Esempio n. 9
0
 public void WhenINavigateToContact()
 {
     driver.Navigate().GoToUrl(WeNeedUHaveUrls.HelpPage());
 }
Esempio n. 10
0
 public void WhenINavigateToAbout()
 {
     driver.Navigate().GoToUrl(WeNeedUHaveUrls.AboutPage());
 }
Esempio n. 11
0
 public void WhenIRequestToGoToMyAccount()
 {
     driver.Navigate().GoToUrl(WeNeedUHaveUrls.AccountPage());
 }
Esempio n. 12
0
        public void WhenIVerifyAPassword()
        {
            var token = ScenarioContext.Current["PasswordVerifyToken"].ToString();

            driver.Navigate().GoToUrl(WeNeedUHaveUrls.VerifyPassword(token));
        }