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

Method assert_text

seleniumbase/core/sb_cdp.py:3330–3333  ·  view source on GitHub ↗

Same as wait_for_text()

(self, text, selector="body", timeout=None)

Source from the content-addressed store, hash-verified

3328 raise Exception(error % (expected, actual))
3329
3330 def assert_text(self, text, selector="body", timeout=None):
3331 """Same as wait_for_text()"""
3332 self.wait_for_text(text, selector=selector, timeout=timeout)
3333 return True
3334
3335 def assert_exact_text(self, text, selector="body", timeout=None):
3336 if not timeout:

Callers 15

find_element_by_textMethod · 0.95
assert_text_in_elementFunction · 0.45
assert_textFunction · 0.45
controleren_tekstMethod · 0.45
vérifier_texteMethod · 0.45
verificare_testoMethod · 0.45
verificar_textoMethod · 0.45
텍스트_확인Method · 0.45
断言文本Method · 0.45
verificar_textoMethod · 0.45

Calls 1

wait_for_textMethod · 0.95

Tested by 2

test_swag_labsMethod · 0.36
test_demo_siteMethod · 0.36