setInspectedNode method

Future<void> setInspectedNode(
  1. NodeId nodeId
)

Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). nodeId DOM node id to be accessible by means of $x command line API.

Implementation

Future<void> setInspectedNode(NodeId nodeId) async {
  await _client.send('DOM.setInspectedNode', {
    'nodeId': nodeId,
  });
}