Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }