Example #1
0
def testSearch(driver):
    """This example shows how to use the page object pattern.

    For more information about this pattern, see:
    https://github.com/SeleniumHQ/selenium/wiki/PageObjects"""
    google = GoogleOneBox(driver, "http://www.google.com")
    res = google.search_for("cheese")
    assert res.link_contains_match_for("Wikipedia")
Example #2
0
 def testSearch(self):
     google = GoogleOneBox(self._driver, "http://www.google.com")
     res = google.search_for("cheese")
     self.assertTrue(res.link_contains_match_for("Wikipedia"))
Example #3
0
 def testSearch(self):
     google = GoogleOneBox(self._driver, "http://www.google.com")
     res = google.search_for("cheese")
     self.assertTrue(res.link_contains_match_for("Wikipedia"))
Example #4
0
 def testSearch(self, driver):
     google = GoogleOneBox(driver, "http://www.google.com")
     res = google.search_for("cheese")
     assert res.link_contains_match_for("Wikipedia")
Example #5
0
 def testSearch(self, driver):
     google = GoogleOneBox(driver, "http://www.google.com")
     res = google.search_for("cheese")
     assert res.link_contains_match_for("Wikipedia")