public void GivenIGoToCateogryPageToAddToCart() { CategoryPage cat = new CategoryPage(driver); cat.hoverProduct(); cat.clickaddToCart(); cat.clickProceedToCO(); }
public void ValidNewSignInUser() { //driver.FindElement(By.XPath("//*[@class='login']")).Click(); IndexPage ip = new IndexPage(driver); String emailAddress = "krishna01" + DateTime.Now.ToString("HHmmss") + "@xyz.com"; 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.enterEmailAddress(emailAddress); si.clickCreateAccount(); AuthenticationAddressPage aap = new AuthenticationAddressPage(driver); aap.enterFirstName("aaaa"); aap.enterLastName("bbbb"); aap.enterEmailAddress(emailAddress); aap.enterPassWord("Testing11"); aap.enterFName(""); aap.enterLName(""); aap.enterAddress1("55 Francis St"); aap.enterCity("Arctic"); aap.enterIdState("Alaska"); aap.enterPostCode("22222"); aap.enterCountry("United States"); aap.enterPhone("1111111111"); aap.enterPhoneMobile("3333333333333"); aap.enterAlias("Doc" + DateTime.Now.ToString("HH:mm:ss")); aap.clickRegisterAddress(); op.clickProceedToCheckOut(); op.clickTermsofService(); op.clickProceedToCheckOut(); PaymentPage pp = new PaymentPage(driver); op.clickPayByBankWire(); pp.clickConfirmOrder(); }
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(); }
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()); }