Update an example test

This commit is contained in:
Michael Mintz 2022-05-20 23:18:44 -04:00
parent 4e23da3b87
commit bed320542b
1 changed files with 4 additions and 9 deletions

View File

@ -16,15 +16,10 @@ class HackingTests(BaseCase):
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.assert_text("Install SeleniumBase", "h1")
self.click_link("GitHub branch")
self.highlight_click('a[href*="/seleniumbase/SeleniumBase"]')
self.assert_element('[href="/seleniumbase/SeleniumBase"]')
self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())
self.highlight_click('[href*="github.com/seleniumbase/SeleniumBase"]')
self.highlight_click('[href="/seleniumbase/SeleniumBase"]')
self.highlight_click('a[title="examples"]')
self.assert_text("examples", "strong.final-path")
self.highlight_click('[title="test_hack_search.py"]')
self.highlight_click('a[title="test_hack_search.py"]')
self.assert_text("test_hack_search.py", "strong.final-path")
self.highlight("strong.final-path")