Skip to content

Commit 7c5cf2c

Browse files
committed
Update example tests
1 parent 60ebc70 commit 7c5cf2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/proxy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_proxy(self):
1818
print("Skipping test for using Safari.")
1919
self.skip("Skipping test for using Safari.")
2020
settings.SKIP_JS_WAITS = True
21-
if not self.page_load_strategy == "none":
21+
if not self.page_load_strategy == "none" and not self.undetectable:
2222
# This page takes too long to load otherwise
2323
self.get_new_driver(page_load_strategy="none")
2424
self.open("https://ipinfo.io/")

examples/test_hack_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def test_hack_search(self):
1313
print("\n This test is not for Headless Mode.")
1414
self.skip('Do not use "--headless" with this test.')
1515
self.open("https://google.com/ncr")
16-
self.assert_element('input[title="Search"]')
16+
self.assert_element('[title="Search"]')
1717
self.sleep(0.5)
1818
self.set_attribute('[action="/search"]', "action", "//bing.com/search")
1919
self.set_attributes('[value="Google Search"]', "value", "Bing Search")
20-
self.type('input[title="Search"]', "GitHub SeleniumBase Docs Install")
20+
self.type('[title="Search"]', "GitHub SeleniumBase Docs Install")
2121
self.sleep(0.5)
2222
self.js_click('[value="Bing Search"]')
2323
self.highlight("h1.b_logo", loops=8)

0 commit comments

Comments
 (0)