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

Function get_last_page

seleniumbase/core/log_helper.py:456–467  ·  view source on GitHub ↗
(driver)

Source from the content-addressed store, hash-verified

454
455
456def get_last_page(driver):
457 try:
458 last_page = None
459 if __is_cdp_swap_needed(driver):
460 last_page = driver.cdp.get_current_url()
461 else:
462 last_page = driver.current_url
463 except Exception:
464 last_page = "[WARNING! Browser Not Open!]"
465 if len(last_page) < 5:
466 last_page = "[WARNING! Browser Not Open!]"
467 return last_page
468
469
470def get_base_url(full_url):

Callers 2

log_test_failure_dataFunction · 0.85

Calls 2

__is_cdp_swap_neededFunction · 0.70
get_current_urlMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…