Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
33
def
element_exists(element: VdomJson, selector: Selector) -> bool:
34
return
next(find_elements(element, selector), None) is not None
35
36
37
def
find_element(
Callers
1
test_ensure_model_path_udpates
Function · 0.90
Calls
1
find_elements
Function · 0.85
Tested by
1
test_ensure_model_path_udpates
Function · 0.72