Ejemplo n.º 1
0
        public void homePageStatus()
        {
            pages.HomePage homePage = new pages.HomePage(driver);

            // click in Home button
            homePage.clickOnHomeButton(driver);

            // check if Home button has active status
            Assert.IsTrue(homePage.getHomeButtonStatus(driver), String.Format("Actual status of Home button is:%s", homePage.getHomeButtonStatus(driver)));
        }
Ejemplo n.º 2
0
        public void homePageSubtitleFormat()
        {
            pages.HomePage homePage = new pages.HomePage(driver);

            // click in Home button
            homePage.clickOnHomeButton(driver);

            // check if desired text is displayed as paragraph ( having p tag)
            Assert.IsTrue(homePage.checkIsSubtitleDisplayedAsParagraph(driver), "Something is not like you are execting for this paragraph, Sorry :( ");
        }
Ejemplo n.º 3
0
        public void homePageTitleFormat()
        {
            pages.HomePage homePage = new pages.HomePage(driver);

            // click in Home button
            homePage.clickOnHomeButton(driver);

            // check if desired text is displayed as header ( having h1 tag)
            Assert.IsTrue(homePage.checkIsTitleDisplayedAsHeader(driver), "Ooops, not desired text displayed as header");
        }
Ejemplo n.º 4
0
        public void homePageDisplayed()
        {
            pages.HomePage        homePage      = new pages.HomePage(driver);
            helpers.HelperMethods helperMethods = new helpers.HelperMethods();

            // click in Home button
            homePage.clickOnHomeButton(driver);

            // check if home page is displayed
            helperMethods.checkHomePageIsDisplayed(driver);
        }