public void testPurchase_Digital() { homePage.openDigitalHomePage(); homePage.deleteCookies(); homePage.verifyCorrectPageIsDisplayed_US(); homePage.browseToCategoryOnTopMenu("Maps"); categoryPage.clickOnSubCategory("On the Road Maps"); productListPage.clickProductLink("Trip and Waypoint Manager"); 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(); billingAddressPage.verifyCorrectPageIsDisplayed(); billingAddressPage.chooseFirstAddress(); billingAddressPage.clickContinueButton(); billingAndReviewPage.verifyCorrectPageIsDisplayed(); billingAndReviewPage.submitOrder(); receiptPage.verifyCorrectPageIsDisplayed(); receiptPage.verifyOrderNumberExists(); }
public void testBrowseStore_Digital() { homePage.openDigitalHomePage(); 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.clickOnSubCategory("Automotive"); productListPage.verifyCorrectPageIsDisplayed(); // productListPage.verifyShopByPriceFilter1("< $100"); // productListPage.verifyShopByBrandFilter1("Nuvi"); productListPage.verifyShopByBrandFilter2("Prestige Series"); productListPage.verifyShopByBrandFilter3("Essential Series"); productListPage.verifyShopByBrandFilter4("Zumo"); productListPage.verifyShopByBrandFilter5("Advanced Series"); productListPage.verifyCurrency_US(); productListPage.clickProductLink("Approach® S1"); productPage.verifyCorrectPageIsDisplayed(); productPage.verifyCurrency_US(); }