Exemplo n.º 1
0
        public HomePage IsCartEmpty()
        {
            ShopingCartPage shopingCartPage = new ShopingCartPage();
            TopBar          topBar          = new TopBar();

            topBar.ShoppingCartButtonClick();
            shopingCartPage.GetEmptyCartMessage();
            return(new HomePage());
        }
Exemplo n.º 2
0
        public void RemoveFromCart(string nameProduck)
        {
            ShopingCartPage shopingCartPage = new ShopingCartPage();
            HomePage        homePage        = new HomePage();
            TopBar          topBar          = new TopBar();
            var             product         = homePage.FindAppropriateProduct(nameProduck);

            Thread.Sleep(500);
            product.ClickCartButton();
            Thread.Sleep(500);
            topBar.ShoppingCartButtonClick();
            shopingCartPage.GetProduct().GetProductName();
            shopingCartPage.GetProduct().ClickRemoveButton();
            shopingCartPage.GetEmptyCartMessage();
        }