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
accessibleNameorroleis specified, it returns all the accessibility nodes in the subtree.