Beispiel #1
0
        public void GoogleSearchSuccessful(string searchTerm)
        {
            GoogleHomepage homepage = new GoogleHomepage(this);

            homepage.Go();
            GoogleResultsPage resultsPage = homepage.Actions.EnterTextAndSearch(searchTerm);

            Assert.IsTrue(resultsPage.Title.Contains(searchTerm));
        }
Beispiel #2
0
        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"));
        }
Beispiel #3
0
 public void GivenINavigateToThePage(string p0)
 {
     home = new GoogleHomepage(_driver);
     home.loadURL(p0);
     Assert.AreEqual("Google", home.getTitle());
 }