Skip to content

Commit 629ebd9

Browse files
committed
Add some special URLs as valid URLs
1 parent b1c6b95 commit 629ebd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/fixtures/page_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def is_valid_url(url):
7373
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip
7474
r'(?::\d+)?' # optional port
7575
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
76-
if regex.match(url):
76+
if regex.match(url) or url == 'about:blank' or url == 'data:,':
7777
return True
7878
else:
7979
return False

0 commit comments

Comments
 (0)