getChildAXNodes method

Future<List<AXNodeData>> getChildAXNodes(
  1. AXNodeId id, {
  2. FrameId? frameId,
})

Fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously. frameId The frame in whose document the node resides. If omitted, the root frame is used.

Implementation

Future<List<AXNodeData>> getChildAXNodes(AXNodeId id,
    {page.FrameId? frameId}) async {
  var result = await _client.send('Accessibility.getChildAXNodes', {
    'id': id,
    if (frameId != null) 'frameId': frameId,
  });
  return (result['nodes'] as List)
      .map((e) => AXNodeData.fromJson(e as Map<String, dynamic>))
      .toList();
}