Skip to content

Commit 43f4e09

Browse files
committed
Improve get_unique_links() for a special edge case
1 parent 725c77b commit 43f4e09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5588,12 +5588,14 @@ def get_unique_links(self):
55885588
"a"->"href", "img"->"src", "link"->"href", and "script"->"src".
55895589
"""
55905590
self.__check_scope()
5591+
if settings.SKIP_JS_WAITS and self.page_load_strategy == "none":
5592+
time.sleep(0.16)
55915593
try:
55925594
self.wait_for_element_visible("body", timeout=1.5)
55935595
except Exception:
55945596
pass
5595-
page_url = self.get_current_url()
55965597
soup = self.get_beautiful_soup(self.get_page_source())
5598+
page_url = self.get_current_url()
55975599
links = page_utils._get_unique_links(page_url, soup)
55985600
return links
55995601

0 commit comments

Comments
 (0)