Beispiel #1
0
        public void PlaceOrder()
        {
            //driver.FindElement(By.XPath("//*[@class='login']")).Click();

            IndexPage ip = new IndexPage(driver);

            ip.clickSignInLink();

            SignIn si = new SignIn(driver);

            si.enterRegisteredEmailAddress("*****@*****.**");
            si.enterPassword("Automation123");
            si.clickSignIn();

            ip.hoverCategory(Category.Women);
            ip.openSubCategory("Evening Dresses");

            CategoryPage cat = new CategoryPage(driver);

            cat.hoverProduct();
            cat.clickaddToCart();
            cat.clickProceedToCO();

            OrderPage op = new OrderPage(driver);

            op.clickProceedToCO();
            op.clickNewAddress();

            AddressPage ap = new AddressPage(driver);

            ap.enterFirstName("Krish");
            ap.enterLastName("Krishna");
            ap.enterAddress1("45 Pinnaker St");
            ap.enterCity("Atlanta");
            ap.enterIdState("Alaska");
            ap.enterPostCode("11111");
            ap.enterCountry("United States");
            ap.enterPhone("1111111111");
            ap.enterPhoneMobile("3333333333333");
            ap.enterAlias("Hema");
            ap.clickSaveAddress();

            op.clickProceedToCO();
            op.clickTermsofService();

            op.clickProceedToCO();

            PaymentPage pp = new PaymentPage(driver);

            pp.clickConfirmOrder();
        }
Beispiel #2
0
        public void GivenIEnterAddANewAddress()
        {
            AddressPage ap = new AddressPage(driver);

            ap.enterFirstName("Krish");
            ap.enterLastName("Krishna");
            ap.enterAddress1("45 Pinnaker St");
            ap.enterCity("Atlanta");
            ap.enterIdState("Alaska");
            ap.enterPostCode("11111");
            ap.enterCountry("United States");
            ap.enterPhone("1111111111");
            ap.enterPhoneMobile("3333333333333");
            ap.enterAlias("Hema");
            ap.clickSaveAddress();
        }
Beispiel #3
0
        public void CheckOutCartinSignInPage()
        {
            //driver.FindElement(By.XPath("//*[@class='login']")).Click();

            IndexPage ip = new IndexPage(driver);

            ip.hoverCategory(Category.Women);
            ip.openSubCategory("Evening Dresses");

            CategoryPage cat = new CategoryPage(driver);

            cat.hoverProduct();
            cat.clickaddToCart();
            cat.clickProceedToCO();

            OrderPage op = new OrderPage(driver);

            op.clickProceedToCO();

            SignIn si = new SignIn(driver);

            si.enterRegisteredEmailAddress("*****@*****.**");
            si.enterPassword("Automation123");
            si.clickSignIn();

            MyAccount myacc = new MyAccount(driver);

            myacc.hoverShoppingCart();
            myacc.openCart();

            op.clickProceedToCO();
            op.clickNewAddress();

            AddressPage ap = new AddressPage(driver);

            ap.enterFirstName("Krish");
            ap.enterLastName("Krishna");
            ap.enterAddress1("45 Pinnaker St");
            ap.enterCity("Atlanta");
            ap.enterIdState("Alaska");
            ap.enterPostCode("11111");
            ap.enterCountry("United States");
            ap.enterPhone("1111111111");
            ap.enterPhoneMobile("3333333333333");
            ap.enterAlias("Doct9994");
            ap.clickSaveAddress();

            op.clickProceedToCheckOut();
            op.clickTermsofService();

            op.clickProceedToCheckOut();

            PaymentPage pp = new PaymentPage(driver);

            op.clickPayByBankWire();

            pp.clickConfirmOrder();

            OrderConfirmationPage ocp = new OrderConfirmationPage(driver);

            Assert.IsTrue(ocp.isOrderConfirmationSuccessDisplayed());
        }