Update example tests

This commit is contained in:
Michael Mintz 2023-10-19 14:09:34 -04:00
parent 7392129730
commit 8f46a62e17
2 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,7 @@ class ProxyTests(BaseCase):
# This page takes too long to load otherwise
self.get_new_driver(page_load_strategy="none")
self.open("https://ipinfo.io/")
self.wait_for_non_empty_text("form input", timeout=20)
ip_address = self.get_text('#ip-string span[class*="primary"] span')
print("\n\nMy IP Address = %s\n" % ip_address)
print("Displaying Host Info:")

View File

@ -25,7 +25,8 @@ class HackingTests(BaseCase):
self.highlight_click('[href*="github.com/seleniumbase/SeleniumBase"]')
self.highlight_click('[href="/seleniumbase/SeleniumBase"]')
self.highlight_click('a[title="examples"]')
self.assert_text("examples", "#file-name-id")
self.highlight_click('div[title="test_hack_search.py"] a')
self.assert_text("test_hack_search.py", "#file-name-id")
self.highlight("#file-name-id")
self.assert_text("examples", "#file-name-id-wide")
self.highlight('a[aria-describedby="item-type-test_hack_search.py"]')
self.click('a[aria-describedby="item-type-test_hack_search.py"]')
self.assert_text("test_hack_search.py", "#file-name-id-wide")
self.highlight("#file-name-id-wide")