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

Function _element_text

src/py/reactpy/tests/tooling/select.py:27–30  ·  view source on GitHub ↗
(element: VdomJson)

Source from the content-addressed store, hash-verified

25
26
27def _element_text(element: VdomJson) -> str:
28 if isinstance(element, str):
29 return element
30 return "".join(_element_text(child) for child in element.get("children", []))
31
32
33def element_exists(element: VdomJson, selector: Selector) -> bool:

Callers 1

text_equalsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected