public void GoogleSearchSuccessful(string searchTerm) { GoogleHomepage homepage = new GoogleHomepage(this); homepage.Go(); GoogleResultsPage resultsPage = homepage.Actions.EnterTextAndSearch(searchTerm); Assert.IsTrue(resultsPage.Title.Contains(searchTerm)); }
public void GoogleTitleContainsSearchTerm() { Log.Info("This is Log4Net again"); GoogleHomepage homepage = new GoogleHomepage(this); //CreateWebPageModel<GoogleHomepage>(); homepage.Go(); GoogleResultsPage resultsPage = homepage.Actions.EnterTextAndSearch("HP Lovecraft"); Assert.IsTrue(resultsPage.Title.Contains("HP Lovecraft")); }
public void GivenINavigateToThePage(string p0) { home = new GoogleHomepage(_driver); home.loadURL(p0); Assert.AreEqual("Google", home.getTitle()); }