requestNode method

Future<NodeId> requestNode(
  1. RemoteObjectId objectId
)

Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications. objectId JavaScript object id to convert into node. Returns: Node id for given object.

Implementation

Future<NodeId> requestNode(runtime.RemoteObjectId objectId) async {
  var result = await _client.send('DOM.requestNode', {
    'objectId': objectId,
  });
  return NodeId.fromJson(result['nodeId'] as int);
}