-
public final class AccessibilityDomain
-
-
Method Summary
Modifier and Type Method Description final Unitdisable()Disables the accessibility domain. final Unitenable()Enables the accessibility domain which causes AXNodeIds to remain consistent between method calls.final GetPartialAXTreeResponsegetPartialAXTree(GetPartialAXTreeRequest input)Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists. final GetFullAXTreeResponsegetFullAXTree(GetFullAXTreeRequest input)Fetches the entire accessibility tree for the root DocumentOfficial doc final GetChildAXNodesResponsegetChildAXNodes(GetChildAXNodesRequest input)Fetches a particular accessibility node by AXNodeId. final QueryAXTreeResponsequeryAXTree(QueryAXTreeRequest input)Query a DOM node's accessibility subtree for accessible name and role. -
-
Method Detail
-
enable
final Unit 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.
-
getPartialAXTree
final GetPartialAXTreeResponse getPartialAXTree(GetPartialAXTreeRequest input)
Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
-
getFullAXTree
final GetFullAXTreeResponse getFullAXTree(GetFullAXTreeRequest input)
Fetches the entire accessibility tree for the root Document
-
getChildAXNodes
final GetChildAXNodesResponse getChildAXNodes(GetChildAXNodesRequest input)
Fetches a particular accessibility node by AXNodeId. Requires
enable()to have been called previously.
-
queryAXTree
final QueryAXTreeResponse queryAXTree(QueryAXTreeRequest input)
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 mactch 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.
-
-
-
-