Update example tests

This commit is contained in:
Michael Mintz 2023-04-10 23:46:10 -04:00
parent 60ebc700f1
commit 7c5cf2c8ae
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class ProxyTests(BaseCase):
print("Skipping test for using Safari.")
self.skip("Skipping test for using Safari.")
settings.SKIP_JS_WAITS = True
if not self.page_load_strategy == "none":
if not self.page_load_strategy == "none" and not self.undetectable:
# This page takes too long to load otherwise
self.get_new_driver(page_load_strategy="none")
self.open("https://ipinfo.io/")

View File

@ -13,11 +13,11 @@ class HackingTests(BaseCase):
print("\n This test is not for Headless Mode.")
self.skip('Do not use "--headless" with this test.')
self.open("https://google.com/ncr")
self.assert_element('input[title="Search"]')
self.assert_element('[title="Search"]')
self.sleep(0.5)
self.set_attribute('[action="/search"]', "action", "//bing.com/search")
self.set_attributes('[value="Google Search"]', "value", "Bing Search")
self.type('input[title="Search"]', "GitHub SeleniumBase Docs Install")
self.type('[title="Search"]', "GitHub SeleniumBase Docs Install")
self.sleep(0.5)
self.js_click('[value="Bing Search"]')
self.highlight("h1.b_logo", loops=8)