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

Method assert_element_absent

seleniumbase/core/sb_cdp.py:3254–3257  ·  view source on GitHub ↗

Assert element is not present in the DOM.

(self, selector, timeout=None)

Source from the content-addressed store, hash-verified

3252 return True
3253
3254 def assert_element_absent(self, selector, timeout=None):
3255 """Assert element is not present in the DOM."""
3256 self.wait_for_element_absent(selector, timeout=timeout)
3257 return True
3258
3259 def assert_element_not_visible(self, selector, timeout=None):
3260 """Assert element is not visible on page. (May still be in DOM)"""

Calls 1

Tested by 2