Ejemplo n.º 1
0
        public override void RunTest()
        {
            header          = new Header(selenium, this);
            footer          = new Footer(selenium, this);
            homePage        = new HomePage(selenium, this);
            categoryPage    = new CategoryPage(selenium, this);
            productListPage = new ProductListPage(selenium, this);
            productPage     = new ProductPage(selenium, this);

            homePage.openBEHomePage();
            //homePage.deleteCookies();
            homePage.verifyDutchText();
            header.verifyDutchText_CustomerNotLoggedIn();
            footer.clickFrenchLanguageLink();
            homePage.verifyFrenchText();
            header.verifyFrenchText_CustomerNotLoggedIn();
            footer.clickDutchLanguageLink();
            homePage.verifyDutchText();
            header.verifyDutchText_CustomerNotLoggedIn();
            //homePage.browseToCategoryOnTopMenu("du_On the Road");
            //driver.UnderlyingWebDriver.FindElement(By.TagName("Producten")).Click();
            categoryPage.verifyDutchText();
            footer.clickFrenchLanguageLink();
            categoryPage.verifyFrenchText();
            footer.clickDutchLanguageLink();
            categoryPage.verifyDutchText();

            string du_subCategory = "Autonavigatie";

            //driver.UnderlyingWebDriver.FindElement(By.  .ClassName("Producten")).Click();
            //driver.UnderlyingWebDriver.FindElement(By.TagName("Producten")).Click();
            //categoryPage.clickOnSubCategory(du_subCategory);
            //productListPage.verifyDutchText(du_subCategory, "Draagtas");

            footer.clickFrenchLanguageLink();
            productListPage.verifyFrenchText("fr_Automotive", "Etui de protection");
        }
Ejemplo n.º 2
0
        public override void RunTest()
        {
            header = new Header(selenium, this);
            footer = new Footer(selenium, this);
            homePage = new HomePage(selenium, this);
            categoryPage = new CategoryPage(selenium, this);
            productListPage = new ProductListPage(selenium, this);
            productPage = new ProductPage(selenium, this);

            homePage.openBEHomePage();
            //homePage.deleteCookies();
            homePage.verifyDutchText();
            header.verifyDutchText_CustomerNotLoggedIn();
            footer.clickFrenchLanguageLink();
            homePage.verifyFrenchText();
            header.verifyFrenchText_CustomerNotLoggedIn();
            footer.clickDutchLanguageLink();
            homePage.verifyDutchText();
            header.verifyDutchText_CustomerNotLoggedIn();
            //homePage.browseToCategoryOnTopMenu("du_On the Road");
            //driver.UnderlyingWebDriver.FindElement(By.TagName("Producten")).Click();
            categoryPage.verifyDutchText();
            footer.clickFrenchLanguageLink();
            categoryPage.verifyFrenchText();
            footer.clickDutchLanguageLink();
            categoryPage.verifyDutchText();

            string du_subCategory = "Autonavigatie";
            //driver.UnderlyingWebDriver.FindElement(By.  .ClassName("Producten")).Click();
            //driver.UnderlyingWebDriver.FindElement(By.TagName("Producten")).Click();
            //categoryPage.clickOnSubCategory(du_subCategory);
            //productListPage.verifyDutchText(du_subCategory, "Draagtas");

            footer.clickFrenchLanguageLink();
            productListPage.verifyFrenchText("fr_Automotive", "Etui de protection");
        }