Exemple #1
0
        public void TC02_AddProductsToCartAndPurchase()
        {
            CommonPage cp = new CommonPage(driver);

            cp.ClickWomenCategory();
            Thread.Sleep(5000);
            WomensCatPage wp = new WomensCatPage(driver);

            wp.AddFirstItemtoCart();
            wp.ClickContinueShopping();
            cp.ClickDresses_category();
            CatDressesPage dp = new CatDressesPage(driver);

            dp.AddFirstItemtoCart();
            dp.ClickCheckOut();
            AddressPage addresspage = new AddressPage(driver);

            addresspage.ClickProceedtoCheckout();   //it is for summary page
            addresspage.ClickProceedtoCheckout();
            ShippingPage shippingpage = new ShippingPage(driver);

            shippingpage.ClickProceedtoCheckout();
            PaymentPage paymentpage = new PaymentPage(driver);

            paymentpage.CompletePayment();
            Thread.Sleep(5000);
        }