public void CreateWishlsitWithCartProducts() { HomePage myHomePage = new HomePage(Driver); SearchedProductsPage mySearchedProductsPage = new SearchedProductsPage(Driver); ProductOverviewPage myProductOverviewPage = new ProductOverviewPage(Driver); ShoppingCartPage myShoppingCartPage = new ShoppingCartPage(Driver); CreateWishlistPage myWishlistPage = new CreateWishlistPage(Driver); myHomePage.ClickOnProductSubCategory("Componente", "Placi video"); mySearchedProductsPage.SortProductsByText("Rating clienti"); mySearchedProductsPage.ClickOnSpecifiedProductByIndex(0); myProductOverviewPage.ClickOnAddToShoppingCartButton(); myHomePage.ClickOnProductSubCategory("Componente", "Procesoare"); mySearchedProductsPage.SortProductsByText("Numar vizualizari"); mySearchedProductsPage.ClickOnSpecifiedProductByIndex(1); myProductOverviewPage.ClickOnAddToShoppingCartButton(); myHomePage.ClickOnProductSubCategory("Componente", "Placi de baza"); mySearchedProductsPage.SortProductsByText("Top vanzari"); mySearchedProductsPage.ClickOnSpecifiedProductByIndex(0); myProductOverviewPage.ClickOnAddToShoppingCartButton(); myShoppingCartPage.ClickOnWishListButton(); myWishlistPage.CreateWishlist("Automation test", "This a wishlist create by automation testing", "Autoamtion", "C#", "automationc#@someemail.com"); Assert.IsTrue(myWishlistPage.WishlistConfidentialityCheckBox.Displayed); }
public void EmptyShoppingCart() { HomePage myHomePage = new HomePage(Driver); SearchedProductsPage mySearchedProductsPage = new SearchedProductsPage(Driver); ProductOverviewPage myProductOverviewPage = new ProductOverviewPage(Driver); ShoppingCartPage myShoppingCartPage = new ShoppingCartPage(Driver); myHomePage.ClickOnProductSubCategory("Mobile", "Smartphone"); mySearchedProductsPage.ClickOnSpecifiedProductByIndex(3); myProductOverviewPage.ClickOnAddToShoppingCartButton(); myShoppingCartPage.ClickOnEmptyCartButton(); Assert.IsTrue(myShoppingCartPage.EmptyShoppingCartMessage.Displayed); }
public void AddProductToCart() { HomePage myHomePage = new HomePage(Driver); SearchedProductsPage mySearchedProductsPage = new SearchedProductsPage(Driver); ProductOverviewPage myProductOverviewPage = new ProductOverviewPage(Driver); ShoppingCartPage myShoppingCartPage = new ShoppingCartPage(Driver); myHomePage.ClickOnProductSubCategory("Mobile", "Smartphone"); mySearchedProductsPage.SortProductsByText("Rating clienti"); mySearchedProductsPage.ClickOnSpecifiedProductByIndex(1); myProductOverviewPage.ClickOnAddToShoppingCartButton(); Assert.IsTrue(myShoppingCartPage.EmptyShoppingCartButton.Displayed); }