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 testSingleSignOn_Checkout() { homePage.openBEHomePage(); //homePage.deleteCookies(); homePage.openUSHomePage(); homePage.deleteCookies(); header.clickOnMyAccountLink_US_UK(); signInPage.verifyCorrectPageIsDisplayed_US_UK(); signInPage.clickCreateNewAccountLink(); createAccountPage.verifyCorrectPageIsDisplayed_US_UK(); createAccountPage.addCustomerInfo_US(); manageAccountPage.clickAddAddressBtn_US_UK(); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false); createAddressPage.checkPreferredBillingAddressBox(); createAddressPage.addAddress_US(); homePage.openBEHomePage(); homePage.verifyCorrectPageIsDisplayed_BE(); homePage.browseToCategoryOnTopMenu("du_On the Road"); categoryPage.clickOnSubCategory("du_Automotive"); productListPage.clickProductLink("Draagtas"); productPage.clickAddToCartButton(); cartPage.clickCheckoutButton(); shippingAddressPage.selectNewAddressOption(); createAddressPage = new CreateAddressPage(customer, selenium, this); createAddressPage.verifyCorrectPageIsDisplayed_BE(true); createAddressPage.addAddress_BE(); deliveryOptionsPage.clickContinueButton(); billingAndReviewPage.verifyCorrectPageIsDisplayed(); billingAndReviewPage.submitOrder(); receiptPage.verifyCorrectPageIsDisplayed(); receiptPage.verifyOrderNumberExists(); }
public void testBrowseStore_US() { homePage = new HomePage(selenium, this); categoryPage = new CategoryPage(selenium, this); productListPage = new ProductListPage(selenium, this); productPage = new ProductPage(selenium, this); homePage.openUSHomePage(); //homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_US(); homePage.browseToCategoryOnTopMenu("On the Road"); string[] subCategories_onTheRoad = { "Motorcycles", "Automotive", "Trucking" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad); homePage.browseToCategoryOnTopMenu("On the Go"); string[] subCategories_onTheGo = { "Track & Locate", "Apps", "Phones" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheGo); homePage.browseToCategoryOnTopMenu("On the Trail"); string[] subCategories_onTheTrail = { "Basic Handhelds", "Mapping Handhelds", "Two Way Radio", "Dog Tracking" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheTrail); homePage.browseToCategoryOnTopMenu("Into Sport"); string[] subCategories_intoSport = { "Running", "Cycling", "Golfing" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_intoSport); homePage.browseToCategoryOnTopMenu("On the Road"); categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad); categoryPage.clickOnSubCategory("Motorcycles"); productListPage.verifyCorrectPageIsDisplayed(); //productListPage.verifyShopByPriceFilter1("> $300"); //productListPage.verifyShopByBrandFilter1("Prestige Series"); productListPage.verifyCurrency_US(); productListPage.clickProductLink("220"); productPage.verifyCorrectPageIsDisplayed(); productPage.selectProductSku("zumo 220, North America"); productPage.verifyCurrency_US(); homePage.browseToCategoryOnTopMenu("On the Road"); categoryPage.clickOnSubCategory("Automotive"); //productListPage.verifyShopByPriceFilter1("< $100"); //productListPage.verifyShopByPriceFilter2("$100 - 200"); //productListPage.verifyShopByBrandFilter1("Nuvi"); productListPage.verifyShopByBrandFilter2("Prestige Series"); productListPage.verifyShopByBrandFilter3("Essential Series"); productListPage.verifyShopByBrandFilter4("Zumo"); productListPage.verifyShopByBrandFilter5("Advanced Series"); }
public void testBrowseStore_UK() { homePage.openUKHomePage(); homePage.deleteCookies(); selenium.Select("languageSelect", "United Kingdom - English"); homePage.verifyCorrectPageIsDisplayed_UK(); homePage.browseToCategoryOnTopMenu("uk_On the Road"); string[] subCategories_ukOnTheRoad = { "uk_Motorcycles", "uk_Automotive", "uk_Trucking" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_ukOnTheRoad); homePage.browseToCategoryOnTopMenu("uk_Maps"); string[] subCategories_ukMaps = { "uk_Scotland", "uk_England", "uk_Ireland" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_ukMaps); homePage.browseToCategoryOnTopMenu("uk_Into Sport"); string[] subCategories_ukIntoSport = { "uk_Running", "uk_Cycling", "uk_Golfing" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_ukIntoSport); homePage.browseToCategoryOnTopMenu("uk_On the Road"); categoryPage.verifyCorrectPageIsDisplayed(subCategories_ukOnTheRoad); categoryPage.clickOnSubCategory("uk_Motorcycles"); productListPage.verifyCorrectPageIsDisplayed(); productListPage.verifyCurrency_UK(); // productListPage.verifyShopByPriceFilter1("> £240"); // productListPage.verifyShopByBrandFilter1("uk_Prestige Series"); productListPage.clickProductLink("zumo 220"); productPage.verifyCorrectPageIsDisplayed(); productPage.selectProductSku("zumo 220, North America"); productPage.verifyCurrency_UK(); homePage.browseToCategoryOnTopMenu("uk_On the Road"); categoryPage.clickOnSubCategory("uk_Automotive"); // productListPage.verifyShopByPriceFilter1("< £80"); // productListPage.verifyShopByPriceFilter2("£80 - 160"); // productListPage.verifyShopByPriceFilter3("£160 - 240"); productListPage.verifyShopByBrandFilter1("uk_Nuvi"); productListPage.verifyShopByBrandFilter2("uk_Prestige Series"); productListPage.verifyShopByBrandFilter3("uk_Essential Series"); productListPage.verifyShopByBrandFilter4("uk_Zumo"); productListPage.verifyShopByBrandFilter5("uk_Advanced Series"); }
public void testBrowseStore_US() { homePage = new HomePage(selenium, this); categoryPage = new CategoryPage(selenium, this); productListPage = new ProductListPage(selenium, this); productPage = new ProductPage(selenium, this); homePage.openUSHomePage(); //homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_US(); homePage.browseToCategoryOnTopMenu("On the Road"); string[] subCategories_onTheRoad = { "Motorcycles", "Automotive", "Trucking" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad); homePage.browseToCategoryOnTopMenu("On the Go"); string[] subCategories_onTheGo = { "Track & Locate", "Apps", "Phones" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheGo); homePage.browseToCategoryOnTopMenu("On the Trail"); string[] subCategories_onTheTrail = { "Basic Handhelds", "Mapping Handhelds", "Two Way Radio", "Dog Tracking" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheTrail); homePage.browseToCategoryOnTopMenu("Into Sport"); string[] subCategories_intoSport = { "Running", "Cycling", "Golfing" }; categoryPage.verifyCorrectPageIsDisplayed(subCategories_intoSport); homePage.browseToCategoryOnTopMenu("On the Road"); categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad); categoryPage.clickOnSubCategory("Motorcycles"); productListPage.verifyCorrectPageIsDisplayed(); //productListPage.verifyShopByPriceFilter1("> $300"); //productListPage.verifyShopByBrandFilter1("Prestige Series"); productListPage.verifyCurrency_US(); productListPage.clickProductLink("220"); productPage.verifyCorrectPageIsDisplayed(); productPage.selectProductSku("zumo 220, North America"); productPage.verifyCurrency_US(); homePage.browseToCategoryOnTopMenu("On the Road"); categoryPage.clickOnSubCategory("Automotive"); //productListPage.verifyShopByPriceFilter1("< $100"); //productListPage.verifyShopByPriceFilter2("$100 - 200"); //productListPage.verifyShopByBrandFilter1("Nuvi"); productListPage.verifyShopByBrandFilter2("Prestige Series"); productListPage.verifyShopByBrandFilter3("Essential Series"); productListPage.verifyShopByBrandFilter4("Zumo"); productListPage.verifyShopByBrandFilter5("Advanced Series"); }
public void testPurchase_US() { customer = new Customer(); homePage = new HomePage(selenium, this); categoryPage = new CategoryPage(selenium, this); productListPage = new ProductListPage(selenium, this); productPage = new ProductPage(selenium, this); cartPage = new CartPage(selenium, this); signInPage = new SignInPage(selenium, this); createAccountPage = new CreateAccountPage(selenium, this); createAddressPage = new CreateAddressPage(customer, selenium, this); deliveryOptionsPage = new DeliveryOptionsPage(selenium, this); billingAndReviewPage = new BillingAndReviewPage(selenium, this); receiptPage = new ReceiptPage(selenium, this); billingAddressPage = new BillingAddressPage(selenium, this); homePage.openUSHomePage(); homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_US(); homePage.browseToCategoryOnTopMenu("On the Road"); categoryPage.clickOnSubCategory("Motorcycles"); productListPage.clickProductLink("220"); productPage.selectProductSku("zumo 220, North America"); productPage.clickAddToCartButton(); cartPage.verifyCorrectPageIsDisplayed(); cartPage.clickCheckoutButton(); signInPage.verifyCorrectPageIsDisplayed_US_UK(); signInPage.clickCreateNewAccountLink(); createAccountPage.verifyCorrectPageIsDisplayed_US_UK(); createAccountPage.addCustomerInfo_US(); createAddressPage.verifyCorrectPageIsDisplayed_US_UK(true); createAddressPage.addAddress_US(); deliveryOptionsPage.verifyCorrectPageIsDisplayed(); deliveryOptionsPage.clickContinueButton(); billingAndReviewPage.verifyCorrectPageIsDisplayed(); billingAndReviewPage.submitOrder(); receiptPage.verifyCorrectPageIsDisplayed(); receiptPage.verifyOrderNumberExists(); }