Update example tests
This commit is contained in:
parent
7392129730
commit
8f46a62e17
|
@ -22,6 +22,7 @@ class ProxyTests(BaseCase):
|
||||||
# This page takes too long to load otherwise
|
# This page takes too long to load otherwise
|
||||||
self.get_new_driver(page_load_strategy="none")
|
self.get_new_driver(page_load_strategy="none")
|
||||||
self.open("https://ipinfo.io/")
|
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')
|
ip_address = self.get_text('#ip-string span[class*="primary"] span')
|
||||||
print("\n\nMy IP Address = %s\n" % ip_address)
|
print("\n\nMy IP Address = %s\n" % ip_address)
|
||||||
print("Displaying Host Info:")
|
print("Displaying Host Info:")
|
||||||
|
|
|
@ -25,7 +25,8 @@ class HackingTests(BaseCase):
|
||||||
self.highlight_click('[href*="github.com/seleniumbase/SeleniumBase"]')
|
self.highlight_click('[href*="github.com/seleniumbase/SeleniumBase"]')
|
||||||
self.highlight_click('[href="/seleniumbase/SeleniumBase"]')
|
self.highlight_click('[href="/seleniumbase/SeleniumBase"]')
|
||||||
self.highlight_click('a[title="examples"]')
|
self.highlight_click('a[title="examples"]')
|
||||||
self.assert_text("examples", "#file-name-id")
|
self.assert_text("examples", "#file-name-id-wide")
|
||||||
self.highlight_click('div[title="test_hack_search.py"] a')
|
self.highlight('a[aria-describedby="item-type-test_hack_search.py"]')
|
||||||
self.assert_text("test_hack_search.py", "#file-name-id")
|
self.click('a[aria-describedby="item-type-test_hack_search.py"]')
|
||||||
self.highlight("#file-name-id")
|
self.assert_text("test_hack_search.py", "#file-name-id-wide")
|
||||||
|
self.highlight("#file-name-id-wide")
|
||||||
|
|
Loading…
Reference in New Issue