public void testPurchase_UK() { homePage.openUKHomePage(); homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_UK(); homePage.browseToCategoryOnTopMenu("uk_On the Road"); categoryPage.clickOnSubCategory("uk_Motorcycles"); productListPage.clickProductLink("zūmo 220, MPC"); productPage.selectProductSku("zumo 220, North America"); productPage.clickAddToCartButton(); cartPage.verifyCorrectPageIsDisplayed(); cartPage.clickCheckoutButton(); signInPage.verifyCorrectPageIsDisplayed_US_UK(); signInPage.clickCreateNewAccountLink(); createAccountPage.verifyCorrectPageIsDisplayed_US_UK(); createAccountPage.addCustomerInfo_UK(); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(true); createAddressPage.addAddress_UK(); deliveryOptionsPage.verifyCorrectPageIsDisplayed(); deliveryOptionsPage.clickContinueButton(); billingAndReviewPage.verifyCorrectPageIsDisplayed(); billingAndReviewPage.submitOrder(); receiptPage.verifyCorrectPageIsDisplayed(); receiptPage.verifyOrderNumberExists(); }
public void testRegisterUser_UK() { customer.setUserName("test_" + System.DateTime.Now.TimeOfDay.TotalMinutes); homePage.openUKHomePage(); homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_UK(); header.clickOnMyAccountLink_US_UK(); signInPage.verifyCorrectPageIsDisplayed_US_UK(); signInPage.clickCreateNewAccountLink(); createAccountPage.verifyCorrectPageIsDisplayed_US_UK(); createAccountPage.addCustomerInfo_UK(); manageAccountPage.verifyCorrectPageIsDisplayed_US_UK(); manageAccountPage.clickAddAddressBtn_US_UK(); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false); createAddressPage.addAddress_UK(); manageAccountPage.verifyMyAddressBook(customer.getAddressList()); }
public void testSingleSignOn_AddAddress() { homePage.openUKHomePage(); //homePage.deleteCookies(); homePage.openUSHomePage(); //homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_US(); header.clickOnMyAccountLink_US_UK(); signInPage.verifyCorrectPageIsDisplayed_US_UK(); signInPage.clickCreateNewAccountLink(); createAccountPage.verifyCorrectPageIsDisplayed_US_UK(); createAccountPage.addCustomerInfo_US(); manageAccountPage.verifyCorrectPageIsDisplayed_US_UK(); manageAccountPage.clickAddAddressBtn_US_UK(); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false); createAddressPage.checkPreferredBillingAddressBox(); createAddressPage.addAddress_US(); String userName = customer.getUserName(); homePage.openUKHomePage(); createAccountPage.setCustomerInfo_UK(); header.clickOnUserNameLink_US_UK(userName); manageAccountPage.clickAddAddressBtn_US_UK(); createAddressPage = new CreateAddressPage(customer, selenium, this); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false); createAddressPage.addAddress_UK(); homePage.openBEHomePage(); homePage.verifyCorrectPageIsDisplayed_BE(); createAccountPage.setCustomerInfo_BE(); header.clickOnUserNameLink_BE(userName); manageAccountPage.clickAddAddressBtn_BE(); createAddressPage = new CreateAddressPage(customer, selenium, this); createAddressPage.verifyCorrectPageIsDisplayed_BE(false); createAddressPage.addAddress_BE(); }
public void testSingleSignOn_AddAddress() { homePage.openUKHomePage(); //homePage.deleteCookies(); homePage.openUSHomePage(); //homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_US(); header.clickOnMyAccountLink_US_UK(); signInPage.verifyCorrectPageIsDisplayed_US_UK(); signInPage.clickCreateNewAccountLink(); createAccountPage.verifyCorrectPageIsDisplayed_US_UK(); createAccountPage.addCustomerInfo_US(); manageAccountPage.verifyCorrectPageIsDisplayed_US_UK(); manageAccountPage.clickAddAddressBtn_US_UK(); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false); createAddressPage.checkPreferredBillingAddressBox(); createAddressPage.addAddress_US(); String userName = customer.getUserName(); homePage.openUKHomePage(); createAccountPage.setCustomerInfo_UK(); header.clickOnUserNameLink_US_UK(userName); manageAccountPage.clickAddAddressBtn_US_UK(); createAddressPage = new CreateAddressPage(customer, selenium, this); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false); createAddressPage.addAddress_UK(); homePage.openBEHomePage(); homePage.verifyCorrectPageIsDisplayed_BE(); createAccountPage.setCustomerInfo_BE(); header.clickOnUserNameLink_BE(userName); manageAccountPage.clickAddAddressBtn_BE(); createAddressPage = new CreateAddressPage(customer, selenium, this); createAddressPage.verifyCorrectPageIsDisplayed_BE(false); createAddressPage.addAddress_BE(); }