Skip to content

Commit a628ee5

Browse files
committed
Bypass "data:" URLs when doing link-checking for 404s
1 parent e911006 commit a628ee5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,8 @@ def assert_no_404_errors(self, multithreaded=True):
27982798
all_links = self.get_unique_links()
27992799
links = []
28002800
for link in all_links:
2801-
if "javascript:" not in link and "mailto:" not in link:
2801+
if "javascript:" not in link and "mailto:" not in link and (
2802+
"data:" not in link):
28022803
links.append(link)
28032804
broken_links = []
28042805
if multithreaded:

0 commit comments

Comments
 (0)