Page.searchInResource

Searches for given string in resource content.

{
  "name": "searchInResource",
  "description": "Searches for given string in resource content.",
  "parameters": [
    {
      "name": "frameId",
      "$ref": "Network.FrameId",
      "description": "Frame id for resource to search in."
    },
    {
      "name": "url",
      "type": "string",
      "description": "URL of the resource to search in."
    },
    {
      "name": "query",
      "type": "string",
      "description": "String to search for."
    },
    {
      "name": "caseSensitive",
      "type": "boolean",
      "optional": true,
      "description": "If true, search is case sensitive."
    },
    {
      "name": "isRegex",
      "type": "boolean",
      "optional": true,
      "description": "If true, treats string parameter as regex."
    },
    {
      "name": "requestId",
      "$ref": "Network.RequestId",
      "optional": true,
      "description": "Request id for resource to search in."
    }
  ],
  "returns": [
    {
      "name": "result",
      "type": "array",
      "items": {
        "$ref": "GenericTypes.SearchMatch"
      },
      "description": "List of search matches."
    }
  ]
}