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": "nodeIds",
      "type": "array",
      "items": {
        "$ref": "NodeId"
      },
      "optional": true,
      "description": "Ids of nodes to use as starting points for the search."
    }
  ],
  "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."
}