AccessibilityDomain

(undocumented in the protocol definition)

Official doc

Functions

Link copied to clipboard
suspend fun disable(): DisableResponse

Disables the accessibility domain.

Link copied to clipboard
suspend fun enable(): EnableResponse

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.

Link copied to clipboard

Subscribes to all events related to this domain.

Link copied to clipboard

Fetches a node and all ancestors up to and including the root. Requires enable() to have been called previously.

Link copied to clipboard

Fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously.

Link copied to clipboard

Fetches the entire accessibility tree for the root Document

Link copied to clipboard

Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.

Link copied to clipboard

Fetches the root node. Requires enable() to have been called previously.

Link copied to clipboard
Link copied to clipboard

The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.

Link copied to clipboard
Link copied to clipboard

The nodesUpdated event is sent every time a previously requested node has changed the in tree.

Link copied to clipboard
inline suspend fun queryAXTree(optionalArgs: QueryAXTreeRequest.Builder.() -> Unit = {}): QueryAXTreeResponse

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.