Exemplo n.º 1
0
        public void Test3()
        {
            var theShoppingCart = new ShoppingCartPage(_driver).Open().AddItemToCart();

            Assert.AreEqual(1, theShoppingCart.ItemsInCart(), "we added only 1 item to the cart");
            //Do something else
            //And maybe something else
        }
Exemplo n.º 2
0
        public ShoppingCartPage ProceedToCheckout()
        {
            var element = GetWebElement(By.CssSelector(SELECTOR_CSS_PROCEED_TO_CHECKOUT_BTN));

            ClickElement(element);

            var ShoppingCartPage = new ShoppingCartPage(Driver);

            ShoppingCartPage.WaitUntilPageHasLoaded();

            return(ShoppingCartPage);
        }
Exemplo n.º 3
0
        public void Test()
        {
            var theShoppingCart = new ShoppingCartPage(_driver).Open().AddItemToCart();

            Assert.AreEqual(1, theShoppingCart.ItemsInCart(), "we added only 1 item to the cart");
        }