3 "description": "Actions and events related to the inspected page belong to the page domain.",
9 "enum": ["Document", "Stylesheet", "Image", "Font", "Script", "XHR", "WebSocket", "Other"],
10 "description": "Resource type as it was perceived by the rendering engine."
13 "id": "CoordinateSystem",
15 "enum": ["Viewport", "Page"],
16 "description": "Coordinate system used by supplied coordinates."
21 "description": "Information about the Frame on the page.",
23 { "name": "id", "type": "string", "description": "Frame unique identifier." },
24 { "name": "parentId", "type": "string", "optional": true, "description": "Parent frame identifier." },
25 { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Identifier of the loader associated with this frame." },
26 { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
27 { "name": "url", "type": "string", "description": "Frame document's URL." },
28 { "name": "securityOrigin", "type": "string", "description": "Frame document's security origin." },
29 { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." }
33 "id": "FrameResource",
36 { "name": "url", "type": "string", "description": "Resource URL." },
37 { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." },
38 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
39 { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." },
40 { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." },
41 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with this resource (if any)." },
42 { "name": "targetId", "type": "string", "optional": true, "description": "Identifier for the context of where the load originated. In general this is the target identifier. For Workers this will be the workerId." }
46 "id": "FrameResourceTree",
48 "description": "Information about the Frame hierarchy along with their cached resources.",
50 { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." },
51 { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
52 { "name": "resources", "type": "array", "items": { "$ref": "FrameResource" }, "description": "Information about frame resources." }
58 "description": "Search result for resource.",
60 { "name": "url", "type": "string", "description": "Resource URL." },
61 { "name": "frameId", "$ref": "Network.FrameId", "description": "Resource frame id." },
62 { "name": "matchesCount", "type": "number", "description": "Number of matches in the resource content." },
63 { "name": "requestId", "$ref": "Network.RequestId", "optional": true, "description": "Network request id." }
69 "description": "Cookie object",
71 { "name": "name", "type": "string", "description": "Cookie name." },
72 { "name": "value", "type": "string", "description": "Cookie value." },
73 { "name": "domain", "type": "string", "description": "Cookie domain." },
74 { "name": "path", "type": "string", "description": "Cookie path." },
75 { "name": "expires", "type": "number", "description": "Cookie expires." },
76 { "name": "size", "type": "integer", "description": "Cookie size." },
77 { "name": "httpOnly", "type": "boolean", "description": "True if cookie is http-only." },
78 { "name": "secure", "type": "boolean", "description": "True if cookie is secure." },
79 { "name": "session", "type": "boolean", "description": "True in case of session cookie." }
83 "id": "ScriptIdentifier",
85 "description": "Unique script identifier."
91 "description": "Enables page domain notifications."
95 "description": "Disables page domain notifications."
98 "name": "addScriptToEvaluateOnLoad",
100 { "name": "scriptSource", "type": "string" }
103 { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." }
107 "name": "removeScriptToEvaluateOnLoad",
109 { "name": "identifier", "$ref": "ScriptIdentifier" }
115 { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." },
116 { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." }
118 "description": "Reloads given page optionally ignoring the cache."
123 { "name": "url", "type": "string", "description": "URL to navigate the page to." }
125 "description": "Navigates current page to the given URL."
128 "name": "getCookies",
130 { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." }
132 "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field."
135 "name": "deleteCookie",
137 { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." },
138 { "name": "url", "type": "string", "description": "URL to match cooke domain and path." }
140 "description": "Deletes browser cookie with given name, domain and path."
143 "name": "getResourceTree",
144 "description": "Returns present frame / resource tree structure.",
146 { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
150 "name": "getResourceContent",
151 "description": "Returns content of the given resource.",
153 { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to get resource for." },
154 { "name": "url", "type": "string", "description": "URL of the resource to get content for." }
157 { "name": "content", "type": "string", "description": "Resource content." },
158 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." }
162 "name": "searchInResource",
163 "description": "Searches for given string in resource content.",
165 { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id for resource to search in." },
166 { "name": "url", "type": "string", "description": "URL of the resource to search in." },
167 { "name": "query", "type": "string", "description": "String to search for." },
168 { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
169 { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." },
170 { "name": "requestId", "$ref": "Network.RequestId", "optional": true, "description": "Request id for resource to search in." }
173 { "name": "result", "type": "array", "items": { "$ref": "GenericTypes.SearchMatch" }, "description": "List of search matches." }
177 "name": "searchInResources",
178 "description": "Searches for given string in frame / resource tree structure.",
180 { "name": "text", "type": "string", "description": "String to search for." },
181 { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
182 { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
185 { "name": "result", "type": "array", "items": { "$ref": "SearchResult" }, "description": "List of search results." }
189 "name": "setDocumentContent",
190 "description": "Sets given markup as the document's HTML.",
192 { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to set HTML for." },
193 { "name": "html", "type": "string", "description": "HTML content to set." }
197 "name": "setShowPaintRects",
198 "description": "Requests that backend shows paint rectangles",
200 { "name": "result", "type": "boolean", "description": "True for showing paint rectangles" }
204 "name": "getScriptExecutionStatus",
205 "description": "Determines if scripts can be executed in the page.",
207 { "name": "result", "type": "string", "enum": ["allowed", "disabled", "forbidden"], "description": "Script execution status: \"allowed\" if scripts can be executed, \"disabled\" if script execution has been disabled through page settings, \"forbidden\" if script execution for the given page is not possible for other reasons." }
211 "name": "setScriptExecutionDisabled",
212 "description": "Switches script execution in the page.",
214 { "name": "value", "type": "boolean", "description": "Whether script execution should be disabled in the page." }
218 "name": "setEmulatedMedia",
220 { "name": "media", "type": "string", "description": "Media type to emulate. Empty string disables the override." }
222 "description": "Emulates the given media for CSS media queries."
225 "name": "getCompositingBordersVisible",
226 "description": "Indicates the visibility of compositing borders.",
228 { "name": "result", "type": "boolean", "description": "If true, compositing borders are visible." }
232 "name": "setCompositingBordersVisible",
233 "description": "Controls the visibility of compositing borders.",
235 { "name": "visible", "type": "boolean", "description": "True for showing compositing borders." }
239 "name": "snapshotNode",
240 "description": "Capture a snapshot of the specified node that does not include unrelated layers.",
242 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to snapshot." }
245 { "name": "dataURL", "type": "string", "description": "Base64-encoded image data (PNG)." }
249 "name": "snapshotRect",
250 "description": "Capture a snapshot of the page within the specified rectangle and coordinate system.",
252 { "name": "x", "type": "integer", "description": "X coordinate" },
253 { "name": "y", "type": "integer", "description": "Y coordinate" },
254 { "name": "width", "type": "integer", "description": "Rectangle width" },
255 { "name": "height", "type": "integer", "description": "Rectangle height" },
256 { "name": "coordinateSystem", "$ref": "CoordinateSystem", "description": "Indicates the coordinate system of the supplied rectangle." }
259 { "name": "dataURL", "type": "string", "description": "Base64-encoded image data (PNG)." }
263 "name": "handleJavaScriptDialog",
264 "description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",
266 { "name": "accept", "type": "boolean", "description": "Whether to accept or dismiss the dialog." },
267 { "name": "promptText", "type": "string", "optional": true, "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog." }
272 "description": "Grab an archive of the page.",
274 { "name": "data", "type": "string", "description": "Base64-encoded web archive." }
280 "name": "domContentEventFired",
282 { "name": "timestamp", "type": "number" }
286 "name": "loadEventFired",
288 { "name": "timestamp", "type": "number" }
292 "name": "frameNavigated",
293 "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
295 { "name": "frame", "$ref": "Frame", "description": "Frame object." }
299 "name": "frameDetached",
300 "description": "Fired when frame has been detached from its parent.",
302 { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has been detached." }
306 "name": "frameStartedLoading",
307 "description": "Fired when frame has started loading.",
309 { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has started loading." }
313 "name": "frameStoppedLoading",
314 "description": "Fired when frame has stopped loading.",
316 { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has stopped loading." }
320 "name": "frameScheduledNavigation",
321 "description": "Fired when frame schedules a potential navigation.",
323 { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has scheduled a navigation." },
324 { "name": "delay", "type": "number", "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start." }
328 "name": "frameClearedScheduledNavigation",
329 "description": "Fired when frame no longer has a scheduled navigation.",
331 { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has cleared its scheduled navigation." }
335 "name": "javascriptDialogOpening",
336 "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.",
338 { "name": "message", "type": "string", "description": "Message that will be displayed by the dialog." }
342 "name": "javascriptDialogClosed",
343 "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed."
346 "name": "scriptsEnabled",
347 "description": "Fired when the JavaScript is enabled/disabled on the page",
349 { "name": "isEnabled", "type": "boolean", "description": "Whether script execution is enabled or disabled on the page." }