public void ThenCleanTheCartAndCloseTheBrowser()
        {
            CleanCartPageObject page = new CleanCartPageObject();

            page.DeleteDisplay.Click();
            page.BtnCarrito.Click();
            page.DeletePhone.Click();
            FProject.SetUp.driver.Close();
        }
Exemple #2
0
        public void Test6()
        {
            SearchProductPageObject page1 = new SearchProductPageObject();

            page1.LinkDisplay.Click();
            page1.BtnAddtoCart.Click();
            CartPageObject page2         = new CartPageObject();
            string         AmountProduct = page2.AmountProducts.Text;

            Console.WriteLine("Amount of products into the Cart: " + AmountProduct);
            string ExpectedText = "2 productos en tu carrito";

            SetUp.VAsserts(AmountProduct, ExpectedText);
            page2.BtnCarrito.Click();
            CleanCartPageObject page = new CleanCartPageObject();

            page.DeleteDisplay.Click();
            page.BtnCarrito.Click();
            page.DeletePhone.Click();
        }