simulang_rs::AXNode (macOS AXUIElement / Windows UIA element /
Linux AT-SPI accessible).
Construct via the static factories or via tree-walking methods on
another node / Instance / Window (children, find,
scoredSearch). Properties are resolved from the underlying
accessibility framework on each access; the node itself is just a
handle.
Constructor
Returns
AccessibilityNode
Properties
string
required
UIA
AutomationId (Windows). Empty on macOS / Linux.string
required
Platform class name (Windows UIA
ClassName / macOS subrole).number
required
Numeric control type (
UIA_ControlTypeIds on Windows, 0 on macOS).string
required
Short description (
AXDescription / UIA Name-adjacent fields).string
required
Help text / tooltip.
boolean
required
Whether the node accepts user input.
string
required
Localized control type string.
string
required
Accessible name (title / label).
string
required
Synthetic, query-friendly description used by
scoredSearch (combines
the node’s role, label, value, and a small amount of ancestor context).AriaRole
required
Cross-platform ARIA role.
string
required
Current text value (textbox content, slider value as string, …).
Methods
activate()
boundingBox()
right and bottom are exclusive (Playwright / DOM convention).
Returns
BoundingBox
children()
Returns
AccessibilityNode[]
expandCollapse()
focus()
fromFocusedApplication()
Returns
AccessibilityNode
fromPid()
pid.
Parameters
number
required
Returns
AccessibilityNode
scoredSearch()
overallDescription
(simulang_rs::AXNodeSynthetic::summary_with_context).
Returns every node whose score equals the maximum found and exceeds
threshold — same semantics as simulang_rs::scored_search with
BowJaccard::score(...).primary as the scorer and a permissive
filter.
order–TraversalOrder.DepthFirstorTraversalOrder.BreadthFirstmax_nodes– upper bound on nodes visited (uses.take()over the walk)collapse_structural– hoist empty structural wrappers out of the walk before scoringquery– natural-language concept Jaccard-compared against each node’soverallDescriptionthreshold– minimum score to keep a node
Parameters
TraversalOrder
required
number
required
boolean
required
string
required
number
required
Returns
AccessibilityNode[]
scrollIntoView()
select()
setValue()
Parameters
string
required
snapshot()
AXWindow on macOS,
UIA.ControlType.* on Windows), with title and value appended when
non-empty.
Returns
string
supportedActions()
"activate", "toggle", "scroll_into_view").
Returns
string[]

