public HomePage IsCartEmpty() { ShopingCartPage shopingCartPage = new ShopingCartPage(); TopBar topBar = new TopBar(); topBar.ShoppingCartButtonClick(); shopingCartPage.GetEmptyCartMessage(); return(new HomePage()); }
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(); }