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)
| 19 | |
| 20 | |
| 21 | def 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") |
nothing calls this directly
no test coverage detected