Skip to main content

Module test_support

Module test_support 

Source
Expand description

Headless test helpers: locate elements by visible text or title/alt, and click them.

These replace hand-rolled depth-first searches over NodeBlueprint / LayoutNode that match on Debug output. Matching walks the blueprint and layout trees in lockstep (so it honours fragment flattening and skips display: none subtrees) and returns hierarchical index paths compatible with AppRuntime::find_node_by_path.

Matches are returned in document (pre-order) order. Later elements, such as modals and <Portal> content, are painted above earlier ones, so use the *_last variants to target the top-most match.

Structs§

NodeQuery
Declarative element query for AppRuntime::find_all, AppRuntime::click and friends.

Enums§

MatchMode
How a NodeQuery compares its needle against an element’s text or title.