← 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

NameTypeDescription
nodeId (optional)DOM.NodeIdIdentifier of the node to get the partial accessibility tree for.
backendNodeId (optional)DOM.BackendNodeIdIdentifier of the backend node to get the partial accessibility tree for.
objectId (optional)Runtime.RemoteObjectIdJavaScript object id of the node wrapper to get the partial accessibility tree for.
fetchRelatives (optional)booleanWhether to fetch this node's ancestors, siblings and children. Defaults to true.

Returns

NameTypeDescription
nodesarrayThe `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": []}