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

Method assert_title

seleniumbase/core/sb_cdp.py:3279–3289  ·  view source on GitHub ↗
(self, title)

Source from the content-addressed store, hash-verified

3277 )
3278
3279 def assert_title(self, title):
3280 expected = title.strip()
3281 actual = self.get_title().strip()
3282 error = (
3283 "Expected page title [%s] does not match the actual title [%s]!"
3284 )
3285 if expected != actual:
3286 time.sleep(2)
3287 actual = self.get_title().strip()
3288 if expected != actual:
3289 raise Exception(error % (expected, actual))
3290
3291 def assert_title_contains(self, substring):
3292 expected = substring.strip()

Callers 15

assert_titleFunction · 0.45
controleren_titelMethod · 0.45
vérifier_titreMethod · 0.45
verificare_titoloMethod · 0.45
verificar_títuloMethod · 0.45
제목_확인Method · 0.45
タイトルを確認Method · 0.45
断言标题Method · 0.45
verificar_títuloMethod · 0.45
test_demo_siteMethod · 0.45
test_iframe_basicsMethod · 0.45

Calls 2

get_titleMethod · 0.95
sleepMethod · 0.45