MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_current_url

Method get_current_url

seleniumbase/fixtures/base_case.py:1298–1312  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1296 self.refresh_page(*args, **kwargs)
1297
1298 def get_current_url(self):
1299 self.__check_scope()
1300 current_url = None
1301 if self.__is_cdp_swap_needed():
1302 current_url = self.cdp.get_current_url()
1303 else:
1304 current_url = self.driver.current_url
1305 if "%" in current_url:
1306 try:
1307 from urllib.parse import unquote
1308
1309 current_url = unquote(current_url, errors="strict")
1310 except Exception:
1311 pass
1312 return current_url
1313
1314 def get_origin(self):
1315 self.__check_scope()

Callers 15

open_start_pageMethod · 0.95
open_if_not_urlMethod · 0.95
set_content_to_frameMethod · 0.95
save_screenshotMethod · 0.95
save_as_pdf_to_logsMethod · 0.95
activate_cdp_modeMethod · 0.95
activate_recorderMethod · 0.95
save_recorded_actionsMethod · 0.95

Calls 2

__check_scopeMethod · 0.95
__is_cdp_swap_neededMethod · 0.95

Tested by

no test coverage detected