querySelector method

Future<int> querySelector(
  1. int nodeId,
  2. String selector
)

Implementation

Future<int> querySelector(int nodeId, String selector) async {
  var resp = await sendCommand('DOM.querySelector',
      params: {'nodeId': nodeId, 'selector': selector});
  return resp.result!['nodeId'] as int;
}