App.open] or [Machine.foregroundApp].
Constructor
Returns
Instance
Properties
null | number
required
A process ID of the instance, if known. Diagnostic only.On macOS this is the stored launch PID (always set). On Linux it is
the launch PID while that process is alive, else the owner of a
window attributed to the app by
WM_CLASS (a single-instance app
handed the launch off to an already-running process). On Windows
instances are app-scoped and store no PID; the value is resolved
lazily — the owner PID of the app’s first window, else a matching
process, else null (e.g. while the app has no window yet). Which
process serves a multi-process app is unspecified.Methods
close()
Self::is_running] if you need to wait.
content()
Returns
string
disableAccessibility()
enableAccessibility()
focus()
Returns
boolean
hide()
Returns
boolean
isAccessible()
Returns
boolean
isFocused()
Returns
boolean
isRunning()
true if the underlying process is still running. Cheap, non-blocking.
Returns
boolean
kill()
root()
Returns
AccessibilityNode
scoredSearch()
overallDescription
(simulang_rs::AXNodeSynthetic::summary_with_context).
Mirrors simulang_rs::Instance::scored_search with BowJaccard as the
scorer and a permissive filter; returns every node whose score equals
the maximum found and exceeds threshold.
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
AccessibilityNode handles — call action
methods (activate, setValue, …) directly on them, walk children
with .children(), or render a snapshot with .snapshot().
Parameters
TraversalOrder
required
number
required
boolean
required
string
required
number
required
Returns
AccessibilityNode[]
show()
Returns
boolean
windows()
Returns
Window[]
