Skip to content

Commit 31dd0e3

Browse files
committed
If a URL starts with "://", add "https" to the start of it
1 parent d4f2f9f commit 31dd0e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def __init__(self, *args, **kwargs):
9595
def open(self, url):
9696
""" Navigates the current browser window to the specified page. """
9797
self.__last_page_load_url = None
98+
if url.startswith("://"):
99+
# Convert URLs such as "://google.com" into "https://google.com"
100+
url = "https" + url
98101
self.driver.get(url)
99102
if settings.WAIT_FOR_RSC_ON_PAGE_LOADS:
100103
self.wait_for_ready_state_complete()

0 commit comments

Comments
 (0)