Skip to content

Commit 27d2e44

Browse files
committed
Update and sort the list of allowable URL prefixes
1 parent 8b8767e commit 27d2e44

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12610,11 +12610,12 @@ def __looks_like_a_page_url(self, url):
1261012610
url.startswith("http:")
1261112611
or url.startswith("https:")
1261212612
or url.startswith("://")
12613-
or url.startswith("chrome:")
1261412613
or url.startswith("about:")
12614+
or url.startswith("blob:")
12615+
or url.startswith("chrome:")
1261512616
or url.startswith("data:")
12616-
or url.startswith("file:")
1261712617
or url.startswith("edge:")
12618+
or url.startswith("file:")
1261812619
or url.startswith("opera:")
1261912620
or url.startswith("view-source:")
1262012621
):

seleniumbase/fixtures/page_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,12 @@ def is_valid_url(url):
117117
if (
118118
regex.match(url)
119119
or url.startswith("about:")
120-
or url.startswith("data:")
120+
or url.startswith("blob:")
121121
or url.startswith("chrome:")
122+
or url.startswith("data:")
122123
or url.startswith("edge:")
123-
or url.startswith("opera:")
124124
or url.startswith("file:")
125+
or url.startswith("opera:")
125126
):
126127
return True
127128
else:

0 commit comments

Comments
 (0)