← Back to Accessibility domain
Accessibility.getPartialAXTree
Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
Domain: Accessibility
experimental
Parameters
| Name | Type | Description |
nodeId (optional) | DOM.NodeId | Identifier of the node to get the partial accessibility tree for. |
backendNodeId (optional) | DOM.BackendNodeId | Identifier of the backend node to get the partial accessibility tree for. |
objectId (optional) | Runtime.RemoteObjectId | JavaScript object id of the node wrapper to get the partial accessibility tree for. |
fetchRelatives (optional) | boolean | Whether to fetch this node's ancestors, siblings and children. Defaults to true. |
Returns
| Name | Type | Description |
nodes | array | The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and
children, if requested. |
Example Request
{
"id": 1,
"method": "Accessibility.getPartialAXTree"
}
Example Response
{
"id": 1,
"result": {
"nodes": []
}
}
Usage in Node.js
const result = await send('Accessibility.getPartialAXTree');
console.log(result);
// {"nodes": []}