MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / test_search

Function test_search

py/test/selenium/webdriver/common/example2.py:21–29  ·  view source on GitHub ↗

This example shows how to use the page object pattern. For more information about this pattern, see: https://github.com/SeleniumHQ/selenium/wiki/PageObjects

(driver)

Source from the content-addressed store, hash-verified

19
20
21def test_search(driver):
22 """This example shows how to use the page object pattern.
23
24 For more information about this pattern, see:
25 https://github.com/SeleniumHQ/selenium/wiki/PageObjects
26 """
27 google = GoogleOneBox(driver, "http://www.google.com")
28 res = google.search_for("cheese")
29 assert res.link_contains_match_for("Wikipedia")

Callers

nothing calls this directly

Calls 3

search_forMethod · 0.95
GoogleOneBoxClass · 0.90

Tested by

no test coverage detected