示例#1
0
        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();
        }
示例#2
0
        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 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());
        }