private void NavigateToMainPage(BrowserType browserType) { NhlMainPage nhlMainPage = new NhlMainPage(browserType); nhlMainPage.NavigateToNhlMainPage(); String expectedText = "Official Site of the National Hockey League | NHL.com"; nhlMainPage.Assertion(nhlMainPage.Title, expectedText); }
public void executeTest(BrowserType browserType) { NhlMainPage nhlMainPage = new NhlMainPage(browserType); nhlMainPage.NavigateToNhlMainPage(); NhlPlayoffsPage nhlPlayoffsPage = nhlMainPage.GoToPlayoffsPage(); String expectedTitleForPlayoffPage = "Stanley Cup Playoffs | NHL.com"; nhlPlayoffsPage.Assertion(nhlPlayoffsPage.Title, expectedTitleForPlayoffPage); }