getAttributes method

Future<List<String>> getAttributes(
  1. NodeId nodeId
)

Returns attributes for the specified node. nodeId Id of the node to retrieve attributes for. Returns: An interleaved array of node attribute names and values.

Implementation

Future<List<String>> getAttributes(NodeId nodeId) async {
  var result = await _client.send('DOM.getAttributes', {
    'nodeId': nodeId,
  });
  return (result['attributes'] as List).map((e) => e as String).toList();
}