public interface Accessibility
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables the accessibility domain.
|
void |
enable()
Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method
calls.
|
List<AXNode> |
getChildAXNodes(String id)
Fetches a particular accessibility node by AXNodeId.
|
List<AXNode> |
getFullAXTree()
Fetches the entire accessibility tree for the root Document
|
List<AXNode> |
getFullAXTree(Integer max_depth)
Fetches the entire accessibility tree for the root Document
|
List<AXNode> |
getPartialAXTree()
Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
|
List<AXNode> |
getPartialAXTree(Integer nodeId,
Integer backendNodeId,
String objectId,
Boolean fetchRelatives)
Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
|
List<AXNode> |
queryAXTree()
Query a DOM node's accessibility subtree for accessible name and role.
|
List<AXNode> |
queryAXTree(Integer nodeId,
Integer backendNodeId,
String objectId,
String accessibleName,
String role)
Query a DOM node's accessibility subtree for accessible name and role.
|
void disable()
void enable()
List<AXNode> getPartialAXTree()
List<AXNode> getPartialAXTree(Integer nodeId, Integer backendNodeId, String objectId, Boolean fetchRelatives)
nodeId - Identifier of the node to get the partial accessibility tree for.backendNodeId - Identifier of the backend node to get the partial accessibility tree for.objectId - JavaScript object id of the node wrapper to get the partial accessibility tree
for.fetchRelatives - Whether to fetch this nodes ancestors, siblings and children. Defaults to
true.List<AXNode> getFullAXTree()
List<AXNode> getFullAXTree(Integer max_depth)
max_depth - The maximum depth at which descendants of the root node should be retrieved.
If omitted, the full tree is returned.List<AXNode> getChildAXNodes(String id)
id - List<AXNode> queryAXTree()
List<AXNode> queryAXTree(Integer nodeId, Integer backendNodeId, String objectId, String accessibleName, String role)
nodeId - Identifier of the node for the root to query.backendNodeId - Identifier of the backend node for the root to query.objectId - JavaScript object id of the node wrapper for the root to query.accessibleName - Find nodes with this computed name.role - Find nodes with this computed role.Copyright © 2021 Kenan Klisura. All rights reserved.