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")
def testSearch(self): google = GoogleOneBox(self._driver, "http://www.google.com") res = google.search_for("cheese") self.assertTrue(res.link_contains_match_for("Wikipedia"))
def testSearch(self, driver): google = GoogleOneBox(driver, "http://www.google.com") res = google.search_for("cheese") assert res.link_contains_match_for("Wikipedia")