setNodeName method

Future<NodeId> setNodeName(
  1. NodeId nodeId,
  2. String name
)

Sets node name for a node with given id. nodeId Id of the node to set name for. name New node's name. Returns: New node's id.

Implementation

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