getFullAXTree method
Fetches the entire accessibility tree for the root Document
depth
The maximum depth at which descendants of the root node should be retrieved.
If omitted, the full tree is returned.
frameId
The frame for whose document the AX tree should be retrieved.
If omited, the root frame is used.
Implementation
Future<List<AXNodeData>> getFullAXTree(
{int? depth, page.FrameId? frameId}) async {
var result = await _client.send('Accessibility.getFullAXTree', {
if (depth != null) 'depth': depth,
if (frameId != null) 'frameId': frameId,
});
return (result['nodes'] as List)
.map((e) => AXNodeData.fromJson(e as Map<String, dynamic>))
.toList();
}