querySelectorAll method

Future<List<NodeId>> querySelectorAll(
  1. NodeId nodeId,
  2. String selector
)

Executes querySelectorAll on a given node. nodeId Id of the node to query upon. selector Selector string. Returns: Query selector result.

Implementation

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