Skip to content

Commit 1e840bd

Browse files
committed
Improve "get_unique_links()" for special scenarios
1 parent 02dfba7 commit 1e840bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5560,6 +5560,11 @@ def get_unique_links(self):
55605560
Page links include those obtained from:
55615561
"a"->"href", "img"->"src", "link"->"href", and "script"->"src".
55625562
"""
5563+
self.__check_scope()
5564+
try:
5565+
self.wait_for_element_visible("body", timeout=1.5)
5566+
except Exception:
5567+
pass
55635568
page_url = self.get_current_url()
55645569
soup = self.get_beautiful_soup(self.get_page_source())
55655570
links = page_utils._get_unique_links(page_url, soup)

0 commit comments

Comments
 (0)