Beispiel #1
0
        public void Can_See_And_Click_Shopping_Cart_Button()
        {
            IWebDriver driver = WebDrivers.Current;

            FiveKRegistration page5K = new FiveKRegistration(driver);

            page5K.NavigateToBaseURL();

            IWebElement cartLink = page5K.linkViewCart;

            Assert.IsTrue(cartLink.IsInteractive());
        }
Beispiel #2
0
        public void Can_Navigate_To_5K_Signup_Page_From_Homepage()
        {
            IWebDriver driver = WebDrivers.Current;

            Homepage pageHome = new Homepage(driver);

            Assert.AreEqual(pageHome.BaseURL, driver.Url);

            LightsForLife pageLights = pageHome.ClickLightsForLifeLink();

            Assert.AreEqual(pageLights.BaseURL, driver.Url);

            FiveKRegistration page5K = pageLights.Click5KLink();

            Assert.AreEqual(page5K.BaseURL, driver.Url);
        }