예제 #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")
예제 #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"))
예제 #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"))
예제 #4
0
파일: example2.py 프로젝트: jesg/selenium
 def testSearch(self, driver):
     google = GoogleOneBox(driver, "http://www.google.com")
     res = google.search_for("cheese")
     assert res.link_contains_match_for("Wikipedia")
예제 #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")