Skip to main content

Module accessibility

Module accessibility 

Source
Expand description

The Accessibility domain.

Method names for the Accessibility domain, for use with CdpClient::call.

This domain is experimental and may change without notice.

Constants§

DISABLE
Disables the accessibility domain.
ENABLE
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.
GET_AX_NODE_AND_ANCESTORS
Fetches a node and all ancestors up to and including the root. Requires enable() to have been called previously.
GET_CHILD_AX_NODES
Fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously.
GET_FULL_AX_TREE
Fetches the entire accessibility tree for the root Document
GET_PARTIAL_AX_TREE
Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
GET_ROOT_AX_NODE
Fetches the root node. Requires enable() to have been called previously.
QUERY_AX_TREE
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.