← Back to Accessibility domain

Accessibility.getFullAXTree

Fetches the entire accessibility tree for the root Document

Domain: Accessibility experimental

Parameters

NameTypeDescription
depth (optional)integerThe maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.
frameId (optional)Page.FrameIdThe frame for whose document the AX tree should be retrieved. If omitted, the root frame is used.

Returns

NameTypeDescription
nodesarray

Example Request

{
  "id": 1,
  "method": "Accessibility.getFullAXTree"
}

Example Response

{
  "id": 1,
  "result": {
    "nodes": []
  }
}

Usage in Node.js

const result = await send('Accessibility.getFullAXTree');
console.log(result);
// {"nodes": []}