DOM.performSearch

Searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.

{
  "name": "performSearch",
  "parameters": [
    {
      "name": "query",
      "type": "string",
      "description": "Plain text or query selector or XPath search query."
    },
    {
      "name": "includeUserAgentShadowDOM",
      "type": "boolean",
      "optional": true,
      "description": "True to search in user agent shadow DOM.",
      "experimental": true
    }
  ],
  "returns": [
    {
      "name": "searchId",
      "type": "string",
      "description": "Unique search session identifier."
    },
    {
      "name": "resultCount",
      "type": "integer",
      "description": "Number of search results."
    }
  ],
  "description": "Searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.",
  "experimental": true
}