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))); }
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 :( "); }
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"); }
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); }