MCPcopy Index your code
hub / github.com/reactive-python/reactpy / element_exists

Function element_exists

src/py/reactpy/tests/tooling/select.py:33–34  ·  view source on GitHub ↗
(element: VdomJson, selector: Selector)

Source from the content-addressed store, hash-verified

31
32
33def element_exists(element: VdomJson, selector: Selector) -> bool:
34 return next(find_elements(element, selector), None) is not None
35
36
37def find_element(

Callers 1

Calls 1

find_elementsFunction · 0.85

Tested by 1