Expand description
Numbered accessibility tree text, diff, and the pure helpers the AX walker uses.
Nothing in this module calls a platform API. The macOS walker fills UiNode
and the tests build the same nodes by hand.
Structs§
- Attribute
Map - Fake
AXManualAccessibility/AXEnhancedUserInterfacemap. - Bound
Element - Element index bound to one process, window, and structural revision.
- Electron
Edit - What to write on attach, and what to write back on teardown.
- Flag
State - Previous accessibility flags for
AXManualAccessibilityandAXEnhancedUserInterface. - Node
Frame - Screen rectangle in points.
- Rendered
- Text plus the signature tree used for the next diff.
- Saved
Frame - Frame stored for revalidation. Points are rounded the same way the text is.
- SigNode
- Structural signature stored in the session cache. Values are already redacted.
- Tree
Query - Request shared by
treeandget-state. - Tree
Report - Observation returned to the dispatcher.
- UiNode
- One accessibility node before numbering.
Constants§
- CHILD_
CAP - Children kept under one parent. Further children become
… +N. - DEPTH_
CAP - Deepest indented level. The window is depth 0.
- LINE_
CAP - Rendered lines before the tree stops.
truncated=trueis an extra line. - URL_
PATH_ CAP - Maximum characters kept from a URL path.
- VALUE_
CAP - Maximum characters kept in a displayed value.
Functions§
- bundle_
matches_ parent - Whether
child_bundlelooks like a helper ofparent_name/parent_bundle. - choose_
text - Full text when there is no baseline or
force_fullis set. Otherwise the diff. - diff_
trees - Diff
currentagainstpreviouswith an LCS on(role, identity, child_count). - electron_
enable - Enable the two Electron attributes when they are false or missing.
- electron_
restore - Values to write back.
Nonemeans that attribute was not changed. - find_
sig - Lookup by the index stored when the signature was rendered.
- find_ui
- Preorder lookup. Index 0 is
root, matchingrender. - hosted_
helper_ pids - Helper pids to walk under a window.
- identity_
text - Identifier, otherwise title, otherwise description. Empty when all are missing.
- node_
is_ secure AXSecureTextField, or a subrole containingSecure.- render
- Render
rootwith the tree-text rules. - revision_
of - Stable hash of the structural signatures.
- shorten_
url - Keep scheme, host, and at most 60 characters of the path. Drop the query.