diff --git a/examples/proxy_test.py b/examples/proxy_test.py index 8a3a96af..b4ef7770 100644 --- a/examples/proxy_test.py +++ b/examples/proxy_test.py @@ -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/") diff --git a/examples/test_hack_search.py b/examples/test_hack_search.py index 47ec0e6e..b3b61faa 100644 --- a/examples/test_hack_search.py +++ b/examples/test_hack_search.py @@ -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)