Update examples

This commit is contained in:
Michael Mintz 2021-09-29 03:21:35 -04:00
parent 1e30863784
commit 709136d19e
2 changed files with 7 additions and 4 deletions

View File

@ -12,18 +12,16 @@ class HackingTests(BaseCase):
self.assert_element('input[title="Search"]')
self.set_attribute('[action="/search"]', "action", "//bing.com/search")
self.set_attributes('[value="Google Search"]', "value", "Bing Search")
self.type('input[title="Search"]', "SeleniumBase GitHub")
self.type('input[title="Search"]', "SeleniumBase GitHub Docs Install")
self.sleep(0.5)
self.js_click('[value="Bing Search"]')
self.highlight("h1.b_logo")
help_docs_install_link = 'a[href*="seleniumbase.io/help_docs/install"]'
if self.is_element_visible(help_docs_install_link):
self.highlight_click(help_docs_install_link)
self.switch_to_newest_window()
self.assert_text("Install SeleniumBase", "h1")
self.click_link_text("GitHub branch")
self.highlight_click('a[href*="github.com/seleniumbase/SeleniumBase"]')
self.switch_to_newest_window()
self.assert_element('[href="/seleniumbase/SeleniumBase"]')
self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())
self.click('a[title="examples"]')

View File

@ -18,7 +18,8 @@ python_files = test_*.py *_test.py *_tests.py *_suite.py *_test_*.py
python_classes = Test* *Test* *Test *Tests *Suite
python_functions = test_*
# Here are the pytest markers used in the example tests:
# Here are some common pytest markers:
# (Some are used in the example tests.)
# (pytest v4.5.0 and newer requires marker registration to prevent warnings.)
# (Future versions of pytest may turn those marker warnings into errors.)
markers =
@ -32,7 +33,11 @@ markers =
offline: custom marker
develop: custom marker
qa: custom marker
ci: custom marker
e2e: custom marker
ready: custom marker
smoke: custom marker
deploy: custom marker
active: custom marker
master: custom marker
release: custom marker