collectClassNamesFromSubtree method

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

Collects class names for the node with given id and all of it's child nodes. nodeId Id of the node to collect class names. Returns: Class name list.

Implementation

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