getRootAXNode method

Future<AXNodeData> getRootAXNode({
  1. FrameId? frameId,
})

Fetches the root node. 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<AXNodeData> getRootAXNode({page.FrameId? frameId}) async {
  var result = await _client.send('Accessibility.getRootAXNode', {
    if (frameId != null) 'frameId': frameId,
  });
  return AXNodeData.fromJson(result['node'] as Map<String, dynamic>);
}