Skip to main content

Module accessibility

Module accessibility 

Source
Expand description

The Accessibility domain.

Types, command parameters and event payloads for the Accessibility domain. The method-name constants for the same domain are in crate::methods.

This domain is experimental and may change without notice.

Structs§

AxNode
A node in the accessibility tree.
AxProperty
AxRelatedNode
AxValue
A single computed AX property.
AxValueSource
A single source for a computed AX property.
DisableParams
Disables the accessibility domain.
EnableParams
Enables the accessibility domain which causes AXNodeIds to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled.
GetAxNodeAndAncestorsParams
Fetches a node and all ancestors up to and including the root. Requires enable() to have been called previously.
GetAxNodeAndAncestorsReturns
What Accessibility.getAXNodeAndAncestors answers with.
GetChildAxNodesParams
Fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously.
GetChildAxNodesReturns
What Accessibility.getChildAXNodes answers with.
GetFullAxTreeParams
Fetches the entire accessibility tree for the root Document
GetFullAxTreeReturns
What Accessibility.getFullAXTree answers with.
GetPartialAxTreeParams
Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
GetPartialAxTreeReturns
What Accessibility.getPartialAXTree answers with.
GetRootAxNodeParams
Fetches the root node. Requires enable() to have been called previously.
GetRootAxNodeReturns
What Accessibility.getRootAXNode answers with.
LoadCompleteEvent
The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.
NodesUpdatedEvent
The nodesUpdated event is sent every time a previously requested node has changed the in tree.
QueryAxTreeParams
Query a DOM node’s accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that match the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither accessibleName or role is specified, it returns all the accessibility nodes in the subtree.
QueryAxTreeReturns
What Accessibility.queryAXTree answers with.

Enums§

AxPropertyName
Values of AXProperty name: - from ‘busy’ to ‘roledescription’: states which apply to every AX node - from ‘live’ to ‘root’: attributes which apply to nodes in live regions - from ‘autocomplete’ to ‘valuetext’: attributes which apply to widgets - from ‘checked’ to ‘selected’: states which apply to widgets - from ‘activedescendant’ to ‘owns’: relationships between elements other than parent/child/sibling - from ‘activeFullscreenElement’ to ‘uninteresting’: reasons why this noode is hidden
AxValueNativeSourceType
Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
AxValueSourceType
Enum of possible property sources.
AxValueType
Enum of possible property types.

Type Aliases§

AxNodeId
Unique accessibility node identifier.