performSearch method

Future<PerformSearchResult> performSearch(
  1. String query, {
  2. bool? includeUserAgentShadowDOM,
})

Searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session. query Plain text or query selector or XPath search query. includeUserAgentShadowDOM True to search in user agent shadow DOM.

Implementation

Future<PerformSearchResult> performSearch(String query,
    {bool? includeUserAgentShadowDOM}) async {
  var result = await _client.send('DOM.performSearch', {
    'query': query,
    if (includeUserAgentShadowDOM != null)
      'includeUserAgentShadowDOM': includeUserAgentShadowDOM,
  });
  return PerformSearchResult.fromJson(result);
}