コード例 #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
ファイル: example2.py プロジェクト: 292388900/selenium
 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
ファイル: example2.py プロジェクト: zmokhtar/selenium
 def testSearch(self, driver):
     google = GoogleOneBox(driver, "http://www.google.com")
     res = google.search_for("cheese")
     assert res.link_contains_match_for("Wikipedia")