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

Method assert_url

seleniumbase/core/sb_cdp.py:3304–3315  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

3302 raise Exception(error % (expected, actual))
3303
3304 def assert_url(self, url):
3305 expected = url.strip()
3306 actual = self.get_current_url().strip()
3307 error = "Expected URL [%s] does not match the actual URL [%s]!"
3308 try:
3309 if expected != actual:
3310 raise Exception(error % (expected, actual))
3311 except Exception:
3312 time.sleep(2)
3313 actual = self.get_current_url().strip()
3314 if expected != actual:
3315 raise Exception(error % (expected, actual))
3316
3317 def assert_url_contains(self, substring):
3318 expected = substring.strip()

Callers 11

assert_urlFunction · 0.45
controleren_urlMethod · 0.45
vérifier_urlMethod · 0.45
verificare_urlMethod · 0.45
verificar_urlMethod · 0.45
URL_확인Method · 0.45
URLを確認するMethod · 0.45
断言URLMethod · 0.45
verificar_urlMethod · 0.45
test_url_assertsMethod · 0.45

Calls 2

get_current_urlMethod · 0.95
sleepMethod · 0.45

Tested by 1

test_url_assertsMethod · 0.36