"description":"If criticial, this is a non-recoverable parse error."
},
{
"name":"line",
"type":"integer",
"description":"Error line."
},
{
"name":"column",
"type":"integer",
"description":"Error column."
}
],
"experimental":true
},
{
"id":"NavigationResponse",
"description":"Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.",
"type":"string",
"enum":[
"Proceed",
"Cancel",
"CancelAndIgnore"
],
"experimental":true
},
{
"id":"LayoutViewport",
"type":"object",
"description":"Layout viewport position and dimensions.",
"experimental":true,
"properties":[
{
"name":"pageX",
"type":"integer",
"description":"Horizontal offset relative to the document (CSS pixels)."
},
{
"name":"pageY",
"type":"integer",
"description":"Vertical offset relative to the document (CSS pixels)."
},
{
"name":"clientWidth",
"type":"integer",
"description":"Width (CSS pixels), excludes scrollbar if present."
},
{
"name":"clientHeight",
"type":"integer",
"description":"Height (CSS pixels), excludes scrollbar if present."
}
]
},
{
"id":"VisualViewport",
"type":"object",
"description":"Visual viewport position, dimensions, and scale.",
"experimental":true,
"properties":[
{
"name":"offsetX",
"type":"number",
"description":"Horizontal offset relative to the layout viewport (CSS pixels)."
},
{
"name":"offsetY",
"type":"number",
"description":"Vertical offset relative to the layout viewport (CSS pixels)."
},
{
"name":"pageX",
"type":"number",
"description":"Horizontal offset relative to the document (CSS pixels)."
},
{
"name":"pageY",
"type":"number",
"description":"Vertical offset relative to the document (CSS pixels)."
},
{
"name":"clientWidth",
"type":"number",
"description":"Width (CSS pixels), excludes scrollbar if present."
},
{
"name":"clientHeight",
"type":"number",
"description":"Height (CSS pixels), excludes scrollbar if present."
},
{
"name":"scale",
"type":"number",
"description":"Scale relative to the ideal viewport (size at width=device-width)."
"description":"Navigates current page to the given URL."
},
{
"name":"stopLoading",
"description":"Force the page stop all navigations and pending resource fetches.",
"experimental":true
},
{
"name":"getNavigationHistory",
"returns":[
{
"name":"currentIndex",
"type":"integer",
"description":"Index of the current navigation history entry."
},
{
"name":"entries",
"type":"array",
"items":{
"$ref":"NavigationEntry"
},
"description":"Array of navigation history entries."
}
],
"description":"Returns navigation history for the current page.",
"experimental":true
},
{
"name":"navigateToHistoryEntry",
"parameters":[
{
"name":"entryId",
"type":"integer",
"description":"Unique id of the entry to navigate to."
}
],
"description":"Navigates current page to the given history entry.",
"experimental":true
},
{
"name":"getCookies",
"returns":[
{
"name":"cookies",
"type":"array",
"items":{
"$ref":"Network.Cookie"
},
"description":"Array of cookie objects."
}
],
"description":"Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
"experimental":true,
"redirect":"Network"
},
{
"name":"deleteCookie",
"parameters":[
{
"name":"cookieName",
"type":"string",
"description":"Name of the cookie to remove."
},
{
"name":"url",
"type":"string",
"description":"URL to match cooke domain and path."
}
],
"description":"Deletes browser cookie with given name, domain and path.",
"experimental":true,
"redirect":"Network"
},
{
"name":"getResourceTree",
"description":"Returns present frame / resource tree structure.",
"returns":[
{
"name":"frameTree",
"$ref":"FrameResourceTree",
"description":"Present frame / resource tree structure."
}
],
"experimental":true
},
{
"name":"getResourceContent",
"description":"Returns content of the given resource.",
"parameters":[
{
"name":"frameId",
"$ref":"FrameId",
"description":"Frame id to get resource for."
},
{
"name":"url",
"type":"string",
"description":"URL of the resource to get content for."
}
],
"returns":[
{
"name":"content",
"type":"string",
"description":"Resource content."
},
{
"name":"base64Encoded",
"type":"boolean",
"description":"True, if content was served as base64."
}
],
"experimental":true
},
{
"name":"searchInResource",
"description":"Searches for given string in resource content.",
"parameters":[
{
"name":"frameId",
"$ref":"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."
}
],
"returns":[
{
"name":"result",
"type":"array",
"items":{
"$ref":"Debugger.SearchMatch"
},
"description":"List of search matches."
}
],
"experimental":true
},
{
"name":"setDocumentContent",
"description":"Sets given markup as the document's HTML.",
"parameters":[
{
"name":"frameId",
"$ref":"FrameId",
"description":"Frame id to set HTML for."
},
{
"name":"html",
"type":"string",
"description":"HTML content to set."
}
],
"experimental":true
},
{
"name":"setDeviceMetricsOverride",
"description":"Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
"parameters":[
{
"name":"width",
"type":"integer",
"description":"Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."
},
{
"name":"height",
"type":"integer",
"description":"Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."
},
{
"name":"deviceScaleFactor",
"type":"number",
"description":"Overriding device scale factor value. 0 disables the override."
},
{
"name":"mobile",
"type":"boolean",
"description":"Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."
"description":"True for showing scroll bottleneck rects"
}
]
},
{
"name":"setShowViewportSizeOnResize",
"description":"Paints viewport size upon main frame resize.",
"parameters":[
{
"name":"show",
"type":"boolean",
"description":"Whether to paint size or not."
}
]
},
{
"name":"setPausedInDebuggerMessage",
"parameters":[
{
"name":"message",
"type":"string",
"optional":true,
"description":"The message to display, also triggers resume and step over controls."
}
]
},
{
"name":"setSuspended",
"parameters":[
{
"name":"suspended",
"type":"boolean",
"description":"Whether overlay should be suspended and not consume any resources until resumed."
}
]
},
{
"name":"setInspectMode",
"description":"Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.",
"parameters":[
{
"name":"mode",
"$ref":"InspectMode",
"description":"Set an inspection mode."
},
{
"name":"highlightConfig",
"$ref":"HighlightConfig",
"optional":true,
"description":"A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>."
}
]
},
{
"name":"highlightRect",
"description":"Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.",
"parameters":[
{
"name":"x",
"type":"integer",
"description":"X coordinate"
},
{
"name":"y",
"type":"integer",
"description":"Y coordinate"
},
{
"name":"width",
"type":"integer",
"description":"Rectangle width"
},
{
"name":"height",
"type":"integer",
"description":"Rectangle height"
},
{
"name":"color",
"$ref":"DOM.RGBA",
"optional":true,
"description":"The highlight fill color (default: transparent)."
},
{
"name":"outlineColor",
"$ref":"DOM.RGBA",
"optional":true,
"description":"The highlight outline color (default: transparent)."
}
]
},
{
"name":"highlightQuad",
"description":"Highlights given quad. Coordinates are absolute with respect to the main frame viewport.",
"parameters":[
{
"name":"quad",
"$ref":"DOM.Quad",
"description":"Quad to highlight"
},
{
"name":"color",
"$ref":"DOM.RGBA",
"optional":true,
"description":"The highlight fill color (default: transparent)."
},
{
"name":"outlineColor",
"$ref":"DOM.RGBA",
"optional":true,
"description":"The highlight outline color (default: transparent)."
}
]
},
{
"name":"highlightNode",
"description":"Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.",
"parameters":[
{
"name":"highlightConfig",
"$ref":"HighlightConfig",
"description":"A descriptor for the highlight appearance."
},
{
"name":"nodeId",
"$ref":"DOM.NodeId",
"optional":true,
"description":"Identifier of the node to highlight."
},
{
"name":"backendNodeId",
"$ref":"DOM.BackendNodeId",
"optional":true,
"description":"Identifier of the backend node to highlight."
},
{
"name":"objectId",
"$ref":"Runtime.RemoteObjectId",
"optional":true,
"description":"JavaScript object id of the node to be highlighted."
}
]
},
{
"name":"highlightFrame",
"description":"Highlights owner element of the frame with given id.",
"parameters":[
{
"name":"frameId",
"$ref":"Page.FrameId",
"description":"Identifier of the frame to highlight."
},
{
"name":"contentColor",
"$ref":"DOM.RGBA",
"optional":true,
"description":"The content box highlight fill color (default: transparent)."
},
{
"name":"contentOutlineColor",
"$ref":"DOM.RGBA",
"optional":true,
"description":"The content box highlight outline color (default: transparent)."
}
]
},
{
"name":"hideHighlight",
"description":"Hides any highlight."
},
{
"name":"getHighlightObjectForTest",
"description":"For testing.",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId",
"description":"Id of the node to get highlight object for."
}
],
"returns":[
{
"name":"highlight",
"type":"object",
"description":"Highlight data for the node."
}
]
}
],
"events":[
{
"name":"nodeHighlightRequested",
"description":"Fired when the node should be highlighted. This happens after call to <code>setInspectMode</code>.",
"description":"Fired when the node should be inspected. This happens after call to <code>setInspectMode</code> or when user manually inspects an element.",
"description":"advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches."
}
],
"commands":[
{
"name":"setDeviceMetricsOverride",
"description":"Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
"parameters":[
{
"name":"width",
"type":"integer",
"description":"Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."
},
{
"name":"height",
"type":"integer",
"description":"Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."
},
{
"name":"deviceScaleFactor",
"type":"number",
"description":"Overriding device scale factor value. 0 disables the override."
},
{
"name":"mobile",
"type":"boolean",
"description":"Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."
"description":"Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.",
"description":"Media type to emulate. Empty string disables the override."
}
],
"description":"Emulates the given media for CSS media queries."
},
{
"name":"setCPUThrottlingRate",
"parameters":[
{
"name":"rate",
"type":"number",
"description":"Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)."
}
],
"experimental":true,
"description":"Enables CPU throttling to emulate slow CPUs."
},
{
"name":"canEmulate",
"description":"Tells whether emulation is supported.",
"returns":[
{
"name":"result",
"type":"boolean",
"description":"True if emulation is supported."
}
],
"experimental":true
},
{
"name":"setVirtualTimePolicy",
"description":"Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.",
"parameters":[
{
"name":"policy",
"$ref":"VirtualTimePolicy"
},
{
"name":"budget",
"type":"integer",
"optional":true,
"description":"If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent."
"description":"True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors."
},
{
"name":"displayedContentWithCertErrors",
"type":"boolean",
"description":"True if the page was loaded over HTTPS without certificate errors, and displayed content such as images that were loaded with certificate errors."
},
{
"name":"ranInsecureContentStyle",
"$ref":"SecurityState",
"description":"Security state representing a page that ran insecure content."
},
{
"name":"displayedInsecureContentStyle",
"$ref":"SecurityState",
"description":"Security state representing a page that displayed insecure content."
}
],
"description":"Information about insecure content on the page."
"description":"Handles a certificate error that fired a certificateError event.",
"parameters":[
{
"name":"eventId",
"type":"integer",
"description":"The ID of the event."
},
{
"name":"action",
"$ref":"CertificateErrorAction",
"description":"The action to take on the certificate error."
}
]
},
{
"name":"setOverrideCertificateErrors",
"description":"Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with handleCertificateError commands.",
"parameters":[
{
"name":"override",
"type":"boolean",
"description":"If true, certificate errors will be overridden."
"description":"The security state of the page changed.",
"parameters":[
{
"name":"securityState",
"$ref":"SecurityState",
"description":"Security state."
},
{
"name":"schemeIsCryptographic",
"type":"boolean",
"description":"True if the page was loaded over cryptographic transport such as HTTPS."
},
{
"name":"explanations",
"type":"array",
"items":{
"$ref":"SecurityStateExplanation"
},
"description":"List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included."
},
{
"name":"insecureContentStatus",
"$ref":"InsecureContentStatus",
"description":"Information about insecure content on the page."
},
{
"name":"summary",
"type":"string",
"description":"Overrides user-visible description of the state.",
"description":"There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the handleCertificateError command. Note: this event does not fire if the certificate error has been allowed internally.",
"description":"Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.",
"description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie."
},
{
"name":"domain",
"type":"string",
"optional":true,
"description":"Cookie domain."
},
{
"name":"path",
"type":"string",
"optional":true,
"description":"Cookie path."
},
{
"name":"secure",
"type":"boolean",
"optional":true,
"description":"True if cookie is secure."
},
{
"name":"httpOnly",
"type":"boolean",
"optional":true,
"description":"True if cookie is http-only."
},
{
"name":"sameSite",
"$ref":"CookieSameSite",
"optional":true,
"description":"Cookie SameSite type."
},
{
"name":"expires",
"$ref":"TimeSinceEpoch",
"optional":true,
"description":"Cookie expiration date, session cookie if not set"
"description":"Authorization challenge for HTTP status code 401 or 407.",
"properties":[
{
"name":"source",
"type":"string",
"optional":true,
"enum":[
"Server",
"Proxy"
],
"description":"Source of the authentication challenge."
},
{
"name":"origin",
"type":"string",
"description":"Origin of the challenger."
},
{
"name":"scheme",
"type":"string",
"description":"The authentication scheme used, such as basic or digest"
},
{
"name":"realm",
"type":"string",
"description":"The realm of the challenge. May be empty."
}
],
"experimental":true
},
{
"id":"AuthChallengeResponse",
"type":"object",
"description":"Response to an AuthChallenge.",
"properties":[
{
"name":"response",
"type":"string",
"enum":[
"Default",
"CancelAuth",
"ProvideCredentials"
],
"description":"The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box."
},
{
"name":"username",
"type":"string",
"optional":true,
"description":"The username to provide, possibly empty. Should only be set if response is ProvideCredentials."
},
{
"name":"password",
"type":"string",
"optional":true,
"description":"The password to provide, possibly empty. Should only be set if response is ProvideCredentials."
"description":"This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.",
"parameters":[
{
"name":"requestId",
"$ref":"RequestId",
"description":"Identifier of XHR to replay."
}
],
"experimental":true
},
{
"name":"canClearBrowserCache",
"description":"Tells whether clearing browser cache is supported.",
"returns":[
{
"name":"result",
"type":"boolean",
"description":"True if browser cache can be cleared."
}
]
},
{
"name":"clearBrowserCache",
"description":"Clears browser cache."
},
{
"name":"canClearBrowserCookies",
"description":"Tells whether clearing browser cookies is supported.",
"returns":[
{
"name":"result",
"type":"boolean",
"description":"True if browser cookies can be cleared."
"description":"Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
"experimental":true
},
{
"name":"getAllCookies",
"returns":[
{
"name":"cookies",
"type":"array",
"items":{
"$ref":"Cookie"
},
"description":"Array of cookie objects."
}
],
"description":"Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
"description":"The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie."
"description":"Whether requests should be intercepted. If patterns is not set, matches all and resets any previously set patterns. Other parameters are ignored if false."
},
{
"name":"patterns",
"type":"array",
"optional":true,
"items":{
"type":"string"
},
"description":"URLs matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call. Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. If omitted equivalent to ['*'] (intercept all)."
"description":"Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId.",
"description":"If set this causes the request to fail with the given reason. Passing <code>Aborted</code> for requests marked with <code>isNavigationRequest</code> also cancels the navigation. Must not be set in response to an authChallenge."
"description":"If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge."
"description":"Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used."
"description":"Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse."
"description":"Identifier of the frame containing document whose manifest is retrieved."
}
],
"returns":[
{
"name":"manifestURL",
"type":"string",
"description":"Manifest URL for document in the given frame."
}
],
"description":"Returns manifest URL for document in the given frame."
},
{
"name":"getApplicationCacheForFrame",
"parameters":[
{
"name":"frameId",
"$ref":"Page.FrameId",
"description":"Identifier of the frame containing document whose application cache is retrieved."
}
],
"returns":[
{
"name":"applicationCache",
"$ref":"ApplicationCache",
"description":"Relevant application cache data for the document in given frame."
}
],
"description":"Returns relevant application cache data for the document in given frame."
}
],
"events":[
{
"name":"applicationCacheStatusUpdated",
"parameters":[
{
"name":"frameId",
"$ref":"Page.FrameId",
"description":"Identifier of the frame containing document whose application cache updated status."
},
{
"name":"manifestURL",
"type":"string",
"description":"Manifest URL."
},
{
"name":"status",
"type":"integer",
"description":"Updated application cache status."
}
]
},
{
"name":"networkStateUpdated",
"parameters":[
{
"name":"isNowOnline",
"type":"boolean"
}
]
}
]
},
{
"domain":"DOM",
"description":"This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>",
"dependencies":[
"Runtime"
],
"types":[
{
"id":"NodeId",
"type":"integer",
"description":"Unique DOM node identifier."
},
{
"id":"BackendNodeId",
"type":"integer",
"description":"Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.",
"experimental":true
},
{
"id":"BackendNode",
"type":"object",
"properties":[
{
"name":"nodeType",
"type":"integer",
"description":"<code>Node</code>'s nodeType."
},
{
"name":"nodeName",
"type":"string",
"description":"<code>Node</code>'s nodeName."
},
{
"name":"backendNodeId",
"$ref":"BackendNodeId"
}
],
"experimental":true,
"description":"Backend node with a friendly name."
},
{
"id":"PseudoType",
"type":"string",
"enum":[
"first-line",
"first-letter",
"before",
"after",
"backdrop",
"selection",
"first-line-inherited",
"scrollbar",
"scrollbar-thumb",
"scrollbar-button",
"scrollbar-track",
"scrollbar-track-piece",
"scrollbar-corner",
"resizer",
"input-list-button"
],
"description":"Pseudo element type."
},
{
"id":"ShadowRootType",
"type":"string",
"enum":[
"user-agent",
"open",
"closed"
],
"description":"Shadow root type."
},
{
"id":"Node",
"type":"object",
"properties":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client."
"description":"<code>Document</code>'s XML version in case of XML documents."
},
{
"name":"name",
"type":"string",
"optional":true,
"description":"<code>Attr</code>'s name."
},
{
"name":"value",
"type":"string",
"optional":true,
"description":"<code>Attr</code>'s value."
},
{
"name":"pseudoType",
"$ref":"PseudoType",
"optional":true,
"description":"Pseudo element type for this node."
},
{
"name":"shadowRootType",
"$ref":"ShadowRootType",
"optional":true,
"description":"Shadow root type."
},
{
"name":"frameId",
"$ref":"Page.FrameId",
"optional":true,
"description":"Frame ID for frame owner elements.",
"experimental":true
},
{
"name":"contentDocument",
"$ref":"Node",
"optional":true,
"description":"Content document for frame owner elements."
},
{
"name":"shadowRoots",
"type":"array",
"optional":true,
"items":{
"$ref":"Node"
},
"description":"Shadow root list for given element host.",
"experimental":true
},
{
"name":"templateContent",
"$ref":"Node",
"optional":true,
"description":"Content document fragment for template elements.",
"experimental":true
},
{
"name":"pseudoElements",
"type":"array",
"items":{
"$ref":"Node"
},
"optional":true,
"description":"Pseudo elements associated with this node.",
"experimental":true
},
{
"name":"importedDocument",
"$ref":"Node",
"optional":true,
"description":"Import document for the HTMLImport links."
},
{
"name":"distributedNodes",
"type":"array",
"items":{
"$ref":"BackendNode"
},
"optional":true,
"description":"Distributed nodes for given insertion point.",
"experimental":true
},
{
"name":"isSVG",
"type":"boolean",
"optional":true,
"description":"Whether the node is SVG.",
"experimental":true
}
],
"description":"DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
},
{
"id":"RGBA",
"type":"object",
"properties":[
{
"name":"r",
"type":"integer",
"description":"The red component, in the [0-255] range."
},
{
"name":"g",
"type":"integer",
"description":"The green component, in the [0-255] range."
},
{
"name":"b",
"type":"integer",
"description":"The blue component, in the [0-255] range."
},
{
"name":"a",
"type":"number",
"optional":true,
"description":"The alpha component, in the [0-1] range (default: 1)."
}
],
"description":"A structure holding an RGBA color."
},
{
"id":"Quad",
"type":"array",
"items":{
"type":"number"
},
"minItems":8,
"maxItems":8,
"description":"An array of quad vertices, x immediately followed by y for each point, points clock-wise.",
"experimental":true
},
{
"id":"BoxModel",
"type":"object",
"experimental":true,
"properties":[
{
"name":"content",
"$ref":"Quad",
"description":"Content box"
},
{
"name":"padding",
"$ref":"Quad",
"description":"Padding box"
},
{
"name":"border",
"$ref":"Quad",
"description":"Border box"
},
{
"name":"margin",
"$ref":"Quad",
"description":"Margin box"
},
{
"name":"width",
"type":"integer",
"description":"Node width"
},
{
"name":"height",
"type":"integer",
"description":"Node height"
},
{
"name":"shapeOutside",
"$ref":"ShapeOutsideInfo",
"optional":true,
"description":"Shape outside coordinates"
}
],
"description":"Box model."
},
{
"id":"ShapeOutsideInfo",
"type":"object",
"experimental":true,
"properties":[
{
"name":"bounds",
"$ref":"Quad",
"description":"Shape bounds"
},
{
"name":"shape",
"type":"array",
"items":{
"type":"any"
},
"description":"Shape coordinate details"
},
{
"name":"marginShape",
"type":"array",
"items":{
"type":"any"
},
"description":"Margin shape bounds"
}
],
"description":"CSS Shape Outside details."
},
{
"id":"Rect",
"type":"object",
"experimental":true,
"properties":[
{
"name":"x",
"type":"number",
"description":"X coordinate"
},
{
"name":"y",
"type":"number",
"description":"Y coordinate"
},
{
"name":"width",
"type":"number",
"description":"Rectangle width"
},
{
"name":"height",
"type":"number",
"description":"Rectangle height"
}
],
"description":"Rectangle."
}
],
"commands":[
{
"name":"enable",
"description":"Enables DOM agent for the given page."
},
{
"name":"disable",
"description":"Disables DOM agent for the given page."
},
{
"name":"getDocument",
"parameters":[
{
"name":"depth",
"type":"integer",
"optional":true,
"description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.",
"experimental":true
},
{
"name":"pierce",
"type":"boolean",
"optional":true,
"description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).",
"experimental":true
}
],
"returns":[
{
"name":"root",
"$ref":"Node",
"description":"Resulting node."
}
],
"description":"Returns the root DOM node (and optionally the subtree) to the caller."
"description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.",
"experimental":true
},
{
"name":"pierce",
"type":"boolean",
"optional":true,
"description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).",
"experimental":true
}
],
"returns":[
{
"name":"nodes",
"type":"array",
"items":{
"$ref":"Node"
},
"description":"Resulting node."
}
],
"description":"Returns the root DOM node (and optionally the subtree) to the caller."
"description":"Id of the node to collect class names."
}
],
"returns":[
{
"name":"classNames",
"type":"array",
"items":{
"type":"string"
},
"description":"Class name list."
}
],
"description":"Collects class names for the node with given id and all of it's child nodes.",
"experimental":true
},
{
"name":"requestChildNodes",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the node to get children for."
},
{
"name":"depth",
"type":"integer",
"optional":true,
"description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.",
"experimental":true
},
{
"name":"pierce",
"type":"boolean",
"optional":true,
"description":"Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).",
"experimental":true
}
],
"description":"Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth."
},
{
"name":"querySelector",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the node to query upon."
},
{
"name":"selector",
"type":"string",
"description":"Selector string."
}
],
"returns":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Query selector result."
}
],
"description":"Executes <code>querySelector</code> on a given node."
},
{
"name":"querySelectorAll",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the node to query upon."
},
{
"name":"selector",
"type":"string",
"description":"Selector string."
}
],
"returns":[
{
"name":"nodeIds",
"type":"array",
"items":{
"$ref":"NodeId"
},
"description":"Query selector result."
}
],
"description":"Executes <code>querySelectorAll</code> on a given node."
},
{
"name":"setNodeName",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the node to set name for."
},
{
"name":"name",
"type":"string",
"description":"New node's name."
}
],
"returns":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"New node's id."
}
],
"description":"Sets node name for a node with given id."
},
{
"name":"setNodeValue",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the node to set value for."
},
{
"name":"value",
"type":"string",
"description":"New node's value."
}
],
"description":"Sets node value for a node with given id."
},
{
"name":"removeNode",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the node to remove."
}
],
"description":"Removes node with given id."
},
{
"name":"setAttributeValue",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the element to set attribute for."
},
{
"name":"name",
"type":"string",
"description":"Attribute name."
},
{
"name":"value",
"type":"string",
"description":"Attribute value."
}
],
"description":"Sets attribute for an element with given id."
},
{
"name":"setAttributesAsText",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the element to set attributes for."
},
{
"name":"text",
"type":"string",
"description":"Text with a number of attributes. Will parse this text using HTML parser."
},
{
"name":"name",
"type":"string",
"optional":true,
"description":"Attribute name to replace with new attributes derived from text in case text parsed successfully."
}
],
"description":"Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs."
},
{
"name":"removeAttribute",
"parameters":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Id of the element to remove attribute from."
},
{
"name":"name",
"type":"string",
"description":"Name of the attribute to remove."
}
],
"description":"Removes attribute with given name from an element with given id."
"description":"Sets node HTML markup, returns new node id."
},
{
"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 <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.",
"experimental":true
},
{
"name":"getSearchResults",
"parameters":[
{
"name":"searchId",
"type":"string",
"description":"Unique search session identifier."
},
{
"name":"fromIndex",
"type":"integer",
"description":"Start index of the search result to be returned."
},
{
"name":"toIndex",
"type":"integer",
"description":"End index of the search result to be returned."
"description":"Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search.",
"experimental":true
},
{
"name":"requestNode",
"parameters":[
{
"name":"objectId",
"$ref":"Runtime.RemoteObjectId",
"description":"JavaScript object id to convert into node."
}
],
"returns":[
{
"name":"nodeId",
"$ref":"NodeId",
"description":"Node id for given object."
}
],
"description":"Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications."
"description":"JavaScript object id of the node wrapper."
},
{
"name":"depth",
"type":"integer",
"optional":true,
"description":"The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.",
"experimental":true
},
{
"name":"pierce",
"type":"boolean",
"optional":true,
"description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).",
"experimental":true
}
],
"returns":[
{
"name":"node",
"$ref":"Node",
"description":"Node description."
}
],
"description":"Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation."
"description":"This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated <code>id</code> used in subsequent operations on the related object. Each object type has a specific <code>id</code> structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the <code>get*ForNode()</code> calls (which accept a DOM node id). A client can also keep track of stylesheets via the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.",
"description":"Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets."
},
{
"id":"PseudoElementMatches",
"type":"object",
"properties":[
{
"name":"pseudoType",
"$ref":"DOM.PseudoType",
"description":"Pseudo element type."
},
{
"name":"matches",
"type":"array",
"items":{
"$ref":"RuleMatch"
},
"description":"Matches of CSS rules applicable to the pseudo style."
}
],
"description":"CSS rule collection for a single pseudo style."
},
{
"id":"InheritedStyleEntry",
"type":"object",
"properties":[
{
"name":"inlineStyle",
"$ref":"CSSStyle",
"optional":true,
"description":"The ancestor node's inline style, if any, in the style inheritance chain."
},
{
"name":"matchedCSSRules",
"type":"array",
"items":{
"$ref":"RuleMatch"
},
"description":"Matches of CSS rules matching the ancestor node in the style inheritance chain."
}
],
"description":"Inherited CSS rule collection from ancestor node."
},
{
"id":"RuleMatch",
"type":"object",
"properties":[
{
"name":"rule",
"$ref":"CSSRule",
"description":"CSS rule in the match."
},
{
"name":"matchingSelectors",
"type":"array",
"items":{
"type":"integer"
},
"description":"Matching selector indices in the rule's selectorList selectors (0-based)."
}
],
"description":"Match data for a CSS rule."
},
{
"id":"Value",
"type":"object",
"properties":[
{
"name":"text",
"type":"string",
"description":"Value text."
},
{
"name":"range",
"$ref":"SourceRange",
"optional":true,
"description":"Value range in the underlying resource (if available)."
}
],
"description":"Data for a simple selector (these are delimited by commas in a selector list)."
},
{
"id":"SelectorList",
"type":"object",
"properties":[
{
"name":"selectors",
"type":"array",
"items":{
"$ref":"Value"
},
"description":"Selectors in the list."
},
{
"name":"text",
"type":"string",
"description":"Rule selector text."
}
],
"description":"Selector list data."
},
{
"id":"CSSStyleSheetHeader",
"type":"object",
"properties":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"description":"The stylesheet identifier."
},
{
"name":"frameId",
"$ref":"Page.FrameId",
"description":"Owner frame identifier."
},
{
"name":"sourceURL",
"type":"string",
"description":"Stylesheet resource URL."
},
{
"name":"sourceMapURL",
"type":"string",
"optional":true,
"description":"URL of source map associated with the stylesheet (if any)."
},
{
"name":"origin",
"$ref":"StyleSheetOrigin",
"description":"Stylesheet origin."
},
{
"name":"title",
"type":"string",
"description":"Stylesheet title."
},
{
"name":"ownerNode",
"$ref":"DOM.BackendNodeId",
"optional":true,
"description":"The backend id for the owner node of the stylesheet."
},
{
"name":"disabled",
"type":"boolean",
"description":"Denotes whether the stylesheet is disabled."
},
{
"name":"hasSourceURL",
"type":"boolean",
"optional":true,
"description":"Whether the sourceURL field value comes from the sourceURL comment."
},
{
"name":"isInline",
"type":"boolean",
"description":"Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags."
},
{
"name":"startLine",
"type":"number",
"description":"Line offset of the stylesheet within the resource (zero based)."
},
{
"name":"startColumn",
"type":"number",
"description":"Column offset of the stylesheet within the resource (zero based)."
"description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
},
{
"name":"selectorList",
"$ref":"SelectorList",
"description":"Rule selector data."
},
{
"name":"origin",
"$ref":"StyleSheetOrigin",
"description":"Parent stylesheet's origin."
},
{
"name":"style",
"$ref":"CSSStyle",
"description":"Associated style declaration."
},
{
"name":"media",
"type":"array",
"items":{
"$ref":"CSSMedia"
},
"optional":true,
"description":"Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards."
}
],
"description":"CSS rule representation."
},
{
"id":"RuleUsage",
"type":"object",
"properties":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
"description":"Start column of range (inclusive)."
},
{
"name":"endLine",
"type":"integer",
"description":"End line of range"
},
{
"name":"endColumn",
"type":"integer",
"description":"End column of range (exclusive)."
}
],
"description":"Text range within a resource. All numbers are zero-based."
},
{
"id":"ShorthandEntry",
"type":"object",
"properties":[
{
"name":"name",
"type":"string",
"description":"Shorthand name."
},
{
"name":"value",
"type":"string",
"description":"Shorthand value."
},
{
"name":"important",
"type":"boolean",
"optional":true,
"description":"Whether the property has \"!important\" annotation (implies <code>false</code> if absent)."
}
]
},
{
"id":"CSSComputedStyleProperty",
"type":"object",
"properties":[
{
"name":"name",
"type":"string",
"description":"Computed style property name."
},
{
"name":"value",
"type":"string",
"description":"Computed style property value."
}
]
},
{
"id":"CSSStyle",
"type":"object",
"properties":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"optional":true,
"description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
},
{
"name":"cssProperties",
"type":"array",
"items":{
"$ref":"CSSProperty"
},
"description":"CSS properties in the style."
},
{
"name":"shorthandEntries",
"type":"array",
"items":{
"$ref":"ShorthandEntry"
},
"description":"Computed values for all shorthands found in the style."
},
{
"name":"cssText",
"type":"string",
"optional":true,
"description":"Style declaration text (if available)."
},
{
"name":"range",
"$ref":"SourceRange",
"optional":true,
"description":"Style declaration range in the enclosing stylesheet (if available)."
}
],
"description":"CSS style representation."
},
{
"id":"CSSProperty",
"type":"object",
"properties":[
{
"name":"name",
"type":"string",
"description":"The property name."
},
{
"name":"value",
"type":"string",
"description":"The property value."
},
{
"name":"important",
"type":"boolean",
"optional":true,
"description":"Whether the property has \"!important\" annotation (implies <code>false</code> if absent)."
},
{
"name":"implicit",
"type":"boolean",
"optional":true,
"description":"Whether the property is implicit (implies <code>false</code> if absent)."
},
{
"name":"text",
"type":"string",
"optional":true,
"description":"The full property text as specified in the style."
},
{
"name":"parsedOk",
"type":"boolean",
"optional":true,
"description":"Whether the property is understood by the browser (implies <code>true</code> if absent)."
},
{
"name":"disabled",
"type":"boolean",
"optional":true,
"description":"Whether the property is disabled by the user (present for source-based properties only)."
},
{
"name":"range",
"$ref":"SourceRange",
"optional":true,
"description":"The entire property range in the enclosing style declaration (if available)."
}
],
"description":"CSS property declaration data."
},
{
"id":"CSSMedia",
"type":"object",
"properties":[
{
"name":"text",
"type":"string",
"description":"Media query text."
},
{
"name":"source",
"type":"string",
"enum":[
"mediaRule",
"importRule",
"linkedSheet",
"inlineSheet"
],
"description":"Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag."
},
{
"name":"sourceURL",
"type":"string",
"optional":true,
"description":"URL of the document containing the media query description."
},
{
"name":"range",
"$ref":"SourceRange",
"optional":true,
"description":"The associated rule (@media or @import) header range in the enclosing stylesheet (if available)."
},
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"optional":true,
"description":"Identifier of the stylesheet containing this object (if exists)."
},
{
"name":"mediaList",
"type":"array",
"items":{
"$ref":"MediaQuery"
},
"optional":true,
"experimental":true,
"description":"Array of media queries."
}
],
"description":"CSS media rule descriptor."
},
{
"id":"MediaQuery",
"type":"object",
"properties":[
{
"name":"expressions",
"type":"array",
"items":{
"$ref":"MediaQueryExpression"
},
"description":"Array of media query expressions."
},
{
"name":"active",
"type":"boolean",
"description":"Whether the media query condition is satisfied."
}
],
"description":"Media query descriptor.",
"experimental":true
},
{
"id":"MediaQueryExpression",
"type":"object",
"properties":[
{
"name":"value",
"type":"number",
"description":"Media query expression value."
},
{
"name":"unit",
"type":"string",
"description":"Media query expression units."
},
{
"name":"feature",
"type":"string",
"description":"Media query expression feature."
},
{
"name":"valueRange",
"$ref":"SourceRange",
"optional":true,
"description":"The associated range of the value text in the enclosing stylesheet (if available)."
},
{
"name":"computedLength",
"type":"number",
"optional":true,
"description":"Computed length of media query expression (if applicable)."
"description":"The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
},
{
"name":"origin",
"$ref":"StyleSheetOrigin",
"description":"Parent stylesheet's origin."
},
{
"name":"keyText",
"$ref":"Value",
"description":"Associated key text."
},
{
"name":"style",
"$ref":"CSSStyle",
"description":"Associated style declaration."
}
],
"description":"CSS keyframe rule representation."
},
{
"id":"StyleDeclarationEdit",
"type":"object",
"properties":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"description":"The css style sheet identifier."
},
{
"name":"range",
"$ref":"SourceRange",
"description":"The range of the style text in the enclosing stylesheet."
},
{
"name":"text",
"type":"string",
"description":"New style text."
}
],
"description":"A descriptor of operation to mutate style declaration text."
},
{
"id":"InlineTextBox",
"type":"object",
"properties":[
{
"name":"boundingBox",
"$ref":"DOM.Rect",
"description":"The absolute position bounding box."
},
{
"name":"startCharacterIndex",
"type":"integer",
"description":"The starting index in characters, for this post layout textbox substring."
},
{
"name":"numCharacters",
"type":"integer",
"description":"The number of characters in this post layout textbox substring."
}
],
"description":"Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.",
"experimental":true
}
],
"commands":[
{
"name":"enable",
"description":"Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received."
},
{
"name":"disable",
"description":"Disables the CSS agent for the given page."
},
{
"name":"getMatchedStylesForNode",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId"
}
],
"returns":[
{
"name":"inlineStyle",
"$ref":"CSSStyle",
"optional":true,
"description":"Inline style for the specified DOM node."
},
{
"name":"attributesStyle",
"$ref":"CSSStyle",
"optional":true,
"description":"Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."
},
{
"name":"matchedCSSRules",
"type":"array",
"items":{
"$ref":"RuleMatch"
},
"optional":true,
"description":"CSS rules matching this node, from all applicable stylesheets."
},
{
"name":"pseudoElements",
"type":"array",
"items":{
"$ref":"PseudoElementMatches"
},
"optional":true,
"description":"Pseudo style matches for this node."
},
{
"name":"inherited",
"type":"array",
"items":{
"$ref":"InheritedStyleEntry"
},
"optional":true,
"description":"A chain of inherited styles (from the immediate node parent up to the DOM tree root)."
},
{
"name":"cssKeyframesRules",
"type":"array",
"items":{
"$ref":"CSSKeyframesRule"
},
"optional":true,
"description":"A list of CSS keyframed animations matching this node."
}
],
"description":"Returns requested styles for a DOM node identified by <code>nodeId</code>."
},
{
"name":"getInlineStylesForNode",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId"
}
],
"returns":[
{
"name":"inlineStyle",
"$ref":"CSSStyle",
"optional":true,
"description":"Inline style for the specified DOM node."
},
{
"name":"attributesStyle",
"$ref":"CSSStyle",
"optional":true,
"description":"Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."
}
],
"description":"Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>."
},
{
"name":"getComputedStyleForNode",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId"
}
],
"returns":[
{
"name":"computedStyle",
"type":"array",
"items":{
"$ref":"CSSComputedStyleProperty"
},
"description":"Computed style for the specified DOM node."
}
],
"description":"Returns the computed style for a DOM node identified by <code>nodeId</code>."
},
{
"name":"getPlatformFontsForNode",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId"
}
],
"returns":[
{
"name":"fonts",
"type":"array",
"items":{
"$ref":"PlatformFontUsage"
},
"description":"Usage statistics for every employed platform font."
}
],
"description":"Requests information about platform fonts which we used to render child TextNodes in the given node.",
"experimental":true
},
{
"name":"getStyleSheetText",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
}
],
"returns":[
{
"name":"text",
"type":"string",
"description":"The stylesheet text."
}
],
"description":"Returns the current textual content and the URL for a stylesheet."
},
{
"name":"collectClassNames",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
}
],
"returns":[
{
"name":"classNames",
"type":"array",
"items":{
"type":"string"
},
"description":"Class name list."
}
],
"description":"Returns all class names from specified stylesheet.",
"experimental":true
},
{
"name":"setStyleSheetText",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
},
{
"name":"text",
"type":"string"
}
],
"returns":[
{
"name":"sourceMapURL",
"type":"string",
"optional":true,
"description":"URL of source map associated with script (if any)."
}
],
"description":"Sets the new stylesheet text."
},
{
"name":"setRuleSelector",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
},
{
"name":"range",
"$ref":"SourceRange"
},
{
"name":"selector",
"type":"string"
}
],
"returns":[
{
"name":"selectorList",
"$ref":"SelectorList",
"description":"The resulting selector list after modification."
}
],
"description":"Modifies the rule selector."
},
{
"name":"setKeyframeKey",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
},
{
"name":"range",
"$ref":"SourceRange"
},
{
"name":"keyText",
"type":"string"
}
],
"returns":[
{
"name":"keyText",
"$ref":"Value",
"description":"The resulting key text after modification."
}
],
"description":"Modifies the keyframe rule key text."
},
{
"name":"setStyleTexts",
"parameters":[
{
"name":"edits",
"type":"array",
"items":{
"$ref":"StyleDeclarationEdit"
}
}
],
"returns":[
{
"name":"styles",
"type":"array",
"items":{
"$ref":"CSSStyle"
},
"description":"The resulting styles after modification."
}
],
"description":"Applies specified style edits one after another in the given order."
},
{
"name":"setMediaText",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
},
{
"name":"range",
"$ref":"SourceRange"
},
{
"name":"text",
"type":"string"
}
],
"returns":[
{
"name":"media",
"$ref":"CSSMedia",
"description":"The resulting CSS media rule after modification."
}
],
"description":"Modifies the rule selector."
},
{
"name":"createStyleSheet",
"parameters":[
{
"name":"frameId",
"$ref":"Page.FrameId",
"description":"Identifier of the frame where \"via-inspector\" stylesheet should be created."
}
],
"returns":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"description":"Identifier of the created \"via-inspector\" stylesheet."
}
],
"description":"Creates a new special \"via-inspector\" stylesheet in the frame with given <code>frameId</code>."
},
{
"name":"addRule",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"description":"The css style sheet identifier where a new rule should be inserted."
},
{
"name":"ruleText",
"type":"string",
"description":"The text of a new rule."
},
{
"name":"location",
"$ref":"SourceRange",
"description":"Text position of a new rule in the target style sheet."
}
],
"returns":[
{
"name":"rule",
"$ref":"CSSRule",
"description":"The newly created rule."
}
],
"description":"Inserts a new rule with the given <code>ruleText</code> in a stylesheet with given <code>styleSheetId</code>, at the position specified by <code>location</code>."
},
{
"name":"forcePseudoState",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId",
"description":"The element id for which to force the pseudo state."
},
{
"name":"forcedPseudoClasses",
"type":"array",
"items":{
"type":"string",
"enum":[
"active",
"focus",
"hover",
"visited"
]
},
"description":"Element pseudo classes to force when computing the element's style."
}
],
"description":"Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
},
{
"name":"getMediaQueries",
"returns":[
{
"name":"medias",
"type":"array",
"items":{
"$ref":"CSSMedia"
}
}
],
"description":"Returns all media queries parsed by the rendering engine.",
"experimental":true
},
{
"name":"setEffectivePropertyValueForNode",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId",
"description":"The element id for which to set property."
},
{
"name":"propertyName",
"type":"string"
},
{
"name":"value",
"type":"string"
}
],
"description":"Find a rule with the given active property for the given node and set the new value for this property",
"experimental":true
},
{
"name":"getBackgroundColors",
"parameters":[
{
"name":"nodeId",
"$ref":"DOM.NodeId",
"description":"Id of the node to get background colors for."
}
],
"returns":[
{
"name":"backgroundColors",
"type":"array",
"items":{
"type":"string"
},
"description":"The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).",
"description":"The list of rules with an indication of whether these were used",
"experimental":true
}
],
"events":[
{
"name":"mediaQueryResultChanged",
"description":"Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features."
},
{
"name":"fontsUpdated",
"description":"Fires whenever a web font gets loaded."
},
{
"name":"styleSheetChanged",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId"
}
],
"description":"Fired whenever a stylesheet is changed as a result of the client operation."
},
{
"name":"styleSheetAdded",
"parameters":[
{
"name":"header",
"$ref":"CSSStyleSheetHeader",
"description":"Added stylesheet metainfo."
}
],
"description":"Fired whenever an active document stylesheet is added."
},
{
"name":"styleSheetRemoved",
"parameters":[
{
"name":"styleSheetId",
"$ref":"StyleSheetId",
"description":"Identifier of the removed stylesheet."
}
],
"description":"Fired whenever an active document stylesheet is removed."
"description":"<code>Node</code>'s id, corresponds to DOM.Node.backendNodeId."
},
{
"name":"childNodeIndexes",
"type":"array",
"items":{
"type":"integer"
},
"optional":true,
"description":"The indexes of the node's child nodes in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any."
},
{
"name":"attributes",
"type":"array",
"items":{
"$ref":"NameValue"
},
"optional":true,
"description":"Attributes of an <code>Element</code> node."
},
{
"name":"pseudoElementIndexes",
"type":"array",
"items":{
"type":"integer"
},
"optional":true,
"description":"Indexes of pseudo elements associated with this node in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any."
},
{
"name":"layoutNodeIndex",
"type":"integer",
"optional":true,
"description":"The index of the node's related layout tree node in the <code>layoutTreeNodes</code> array returned by <code>getSnapshot</code>, if any."
},
{
"name":"documentURL",
"type":"string",
"optional":true,
"description":"Document URL that <code>Document</code> or <code>FrameOwner</code> node points to."
},
{
"name":"baseURL",
"type":"string",
"optional":true,
"description":"Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion."
"description":"The index of a frame owner element's content document in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any."
},
{
"name":"importedDocumentIndex",
"type":"integer",
"optional":true,
"description":"Index of the imported document's node of a link element in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any."
},
{
"name":"templateContentIndex",
"type":"integer",
"optional":true,
"description":"Index of the content node of a template element in the <code>domNodes</code> array returned by <code>getSnapshot</code>."
"description":"Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked."
"description":"The index of the related DOM node in the <code>domNodes</code> array returned by <code>getSnapshot</code>."
},
{
"name":"boundingBox",
"$ref":"DOM.Rect",
"description":"The absolute position bounding box."
},
{
"name":"layoutText",
"type":"string",
"optional":true,
"description":"Contents of the LayoutText, if any."
},
{
"name":"inlineTextNodes",
"type":"array",
"optional":true,
"items":{
"$ref":"CSS.InlineTextBox"
},
"description":"The post-layout inline text nodes, if any."
},
{
"name":"styleIndex",
"type":"integer",
"optional":true,
"description":"Index into the <code>computedStyles</code> array returned by <code>getSnapshot</code>."
}
],
"description":"Details of an element in the DOM tree with a LayoutObject."
},
{
"id":"ComputedStyle",
"type":"object",
"properties":[
{
"name":"properties",
"type":"array",
"items":{
"$ref":"NameValue"
},
"description":"Name/value pairs of computed style properties."
}
],
"description":"A subset of the full ComputedStyle as defined by the request whitelist."
},
{
"id":"NameValue",
"type":"object",
"properties":[
{
"name":"name",
"type":"string",
"description":"Attribute/property name."
},
{
"name":"value",
"type":"string",
"description":"Attribute/property value."
}
],
"description":"A name/value pair."
}
],
"commands":[
{
"name":"getSnapshot",
"parameters":[
{
"name":"computedStyleWhitelist",
"type":"array",
"items":{
"type":"string"
},
"description":"Whitelist of computed styles to return."
}
],
"returns":[
{
"name":"domNodes",
"type":"array",
"items":{
"$ref":"DOMNode"
},
"description":"The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document."
},
{
"name":"layoutTreeNodes",
"type":"array",
"items":{
"$ref":"LayoutTreeNode"
},
"description":"The nodes in the layout tree."
},
{
"name":"computedStyles",
"type":"array",
"items":{
"$ref":"ComputedStyle"
},
"description":"Whitelisted ComputedStyle properties for each node in the layout tree."
}
],
"description":"Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened. "
"description":"This is either obtained from another method or specifed as <code>blob:<uuid></code> where <code><uuid></code> is an UUID of a Blob."
"description":"DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.",
"description":"The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.",
"experimental":true
},
{
"name":"pierce",
"type":"boolean",
"optional":true,
"description":"Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.",
"description":"Whether to discover available targets."
}
]
},
{
"name":"setAutoAttach",
"description":"Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets.",
"parameters":[
{
"name":"autoAttach",
"type":"boolean",
"description":"Whether to auto-attach to related targets."
},
{
"name":"waitForDebuggerOnStart",
"type":"boolean",
"description":"Whether to pause new targets when attaching to them. Use <code>Runtime.runIfWaitingForDebugger</code> to run paused targets."
}
]
},
{
"name":"setAttachToFrames",
"parameters":[
{
"name":"value",
"type":"boolean",
"description":"Whether to attach to frames."
}
]
},
{
"name":"setRemoteLocations",
"description":"Enables target discovery for the specified locations, when <code>setDiscoverTargets</code> was set to <code>true</code>.",
"description":"Issued when some information about a target has changed. This only happens between <code>targetCreated</code> and <code>targetDestroyed</code>.",
"description":"Issued when detached from target for any reason (including <code>detachFromTarget</code> command). Can be issued multiple times per target if multiple sessions have been attached to it.",
"description":"The Last-Modified header value of the main script."
},
{
"name":"scriptResponseTime",
"type":"number",
"optional":true,
"description":"The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated."
"description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."
"description":"Text as generated by processing a virtual key code with a keyboard layout. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (default: \"\")"
},
{
"name":"unmodifiedText",
"type":"string",
"optional":true,
"description":"Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\")."
"description":"Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\")."
},
{
"name":"key",
"type":"string",
"optional":true,
"description":"Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\")."
"description":"Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."
"description":"Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one."
"description":"Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one."
"description":"A list of supported tracing categories."
}
]
},
{
"name":"requestMemoryDump",
"description":"Request a global memory dump.",
"returns":[
{
"name":"dumpGuid",
"type":"string",
"description":"GUID of the resulting global memory dump."
},
{
"name":"success",
"type":"boolean",
"description":"True iff the global memory dump succeeded."
}
]
},
{
"name":"recordClockSyncMarker",
"description":"Record a clock sync marker in the trace.",
"parameters":[
{
"name":"syncId",
"type":"string",
"description":"The ID of this clock sync marker"
}
]
}
],
"events":[
{
"name":"dataCollected",
"parameters":[
{
"name":"value",
"type":"array",
"items":{
"type":"object"
}
}
],
"description":"Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event."
},
{
"name":"tracingComplete",
"description":"Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
"parameters":[
{
"name":"stream",
"$ref":"IO.StreamHandle",
"optional":true,
"description":"A handle of the stream that holds resulting trace data."
}
]
},
{
"name":"bufferUsage",
"parameters":[
{
"name":"percentFull",
"type":"number",
"optional":true,
"description":"A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size."
},
{
"name":"eventCount",
"type":"number",
"optional":true,
"description":"An approximate number of events in the trace log."
},
{
"name":"value",
"type":"number",
"optional":true,
"description":"A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size."
"description":"Enables log domain, sends the entries collected so far to the client by means of the <code>entryAdded</code> notification."
},
{
"name":"disable",
"description":"Disables log domain, prevents further log entries from being reported to the client."
},
{
"name":"clear",
"description":"Clears the log."
},
{
"name":"startViolationsReport",
"parameters":[
{
"name":"config",
"type":"array",
"items":{
"$ref":"ViolationSetting"
},
"description":"Configuration for violations."
}
],
"description":"start violation reporting."
},
{
"name":"stopViolationsReport",
"description":"Stop violation reporting."
}
],
"events":[
{
"name":"entryAdded",
"parameters":[
{
"name":"entry",
"$ref":"LogEntry",
"description":"The entry."
}
],
"description":"Issued when new message was logged."
}
]
},
{
"domain":"SystemInfo",
"description":"The SystemInfo domain defines methods and events for querying low-level system information.",
"experimental":true,
"types":[
{
"id":"GPUDevice",
"type":"object",
"properties":[
{
"name":"vendorId",
"type":"number",
"description":"PCI ID of the GPU vendor, if available; 0 otherwise."
},
{
"name":"deviceId",
"type":"number",
"description":"PCI ID of the GPU device, if available; 0 otherwise."
},
{
"name":"vendorString",
"type":"string",
"description":"String description of the GPU vendor, if the PCI ID is not available."
},
{
"name":"deviceString",
"type":"string",
"description":"String description of the GPU device, if the PCI ID is not available."
}
],
"description":"Describes a single graphics processor (GPU)."
},
{
"id":"GPUInfo",
"type":"object",
"properties":[
{
"name":"devices",
"type":"array",
"items":{
"$ref":"GPUDevice"
},
"description":"The graphics devices on the system. Element 0 is the primary GPU."
},
{
"name":"auxAttributes",
"type":"object",
"optional":true,
"description":"An optional dictionary of additional GPU related attributes."
},
{
"name":"featureStatus",
"type":"object",
"optional":true,
"description":"An optional dictionary of graphics features and their status."
},
{
"name":"driverBugWorkarounds",
"type":"array",
"items":{
"type":"string"
},
"description":"An optional array of GPU driver bug workarounds."
}
],
"description":"Provides information about the GPU(s) on the system."
}
],
"commands":[
{
"name":"getInfo",
"description":"Returns information about the system.",
"returns":[
{
"name":"gpu",
"$ref":"GPUInfo",
"description":"Information about the GPUs on the system."
},
{
"name":"modelName",
"type":"string",
"description":"A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported."
},
{
"name":"modelVersion",
"type":"string",
"description":"A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported."
"description":"Set position and/or size of the browser window.",
"parameters":[
{
"name":"windowId",
"$ref":"WindowID",
"description":"Browser window id."
},
{
"name":"bounds",
"$ref":"Bounds",
"description":"New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged."
}
]
},
{
"name":"getWindowBounds",
"description":"Get position and size of the browser window.",
"parameters":[
{
"name":"windowId",
"$ref":"WindowID",
"description":"Browser window id."
}
],
"returns":[
{
"name":"bounds",
"$ref":"Bounds",
"description":"Bounds information of the window. When window state is 'minimized', the restored window position and size are returned."
"description":"Provides information about the protocol schema.",
"types":[
{
"id":"Domain",
"type":"object",
"description":"Description of the protocol domain.",
"properties":[
{
"name":"name",
"type":"string",
"description":"Domain name."
},
{
"name":"version",
"type":"string",
"description":"Domain version."
}
]
}
],
"commands":[
{
"name":"getDomains",
"description":"Returns supported domains.",
"handlers":[
"browser",
"renderer"
],
"returns":[
{
"name":"domains",
"type":"array",
"items":{
"$ref":"Domain"
},
"description":"List of supported domains."
}
]
}
]
},
{
"domain":"Runtime",
"description":"Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
"types":[
{
"id":"ScriptId",
"type":"string",
"description":"Unique script identifier."
},
{
"id":"RemoteObjectId",
"type":"string",
"description":"Unique object identifier."
},
{
"id":"UnserializableValue",
"type":"string",
"enum":[
"Infinity",
"NaN",
"-Infinity",
"-0"
],
"description":"Primitive value which cannot be JSON-stringified."
},
{
"id":"RemoteObject",
"type":"object",
"description":"Mirror object referencing original JavaScript object.",
"description":"Object subtype hint. Specified for <code>object</code> type values only."
}
]
},
{
"id":"EntryPreview",
"type":"object",
"experimental":true,
"properties":[
{
"name":"key",
"$ref":"ObjectPreview",
"optional":true,
"description":"Preview of the key. Specified for map-like collection entries."
},
{
"name":"value",
"$ref":"ObjectPreview",
"description":"Preview of the value."
}
]
},
{
"id":"PropertyDescriptor",
"type":"object",
"description":"Object property descriptor.",
"properties":[
{
"name":"name",
"type":"string",
"description":"Property name or symbol description."
},
{
"name":"value",
"$ref":"RemoteObject",
"optional":true,
"description":"The value associated with the property."
},
{
"name":"writable",
"type":"boolean",
"optional":true,
"description":"True if the value associated with the property may be changed (data descriptors only)."
},
{
"name":"get",
"$ref":"RemoteObject",
"optional":true,
"description":"A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)."
},
{
"name":"set",
"$ref":"RemoteObject",
"optional":true,
"description":"A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)."
},
{
"name":"configurable",
"type":"boolean",
"description":"True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object."
},
{
"name":"enumerable",
"type":"boolean",
"description":"True if this property shows up during enumeration of the properties on the corresponding object."
},
{
"name":"wasThrown",
"type":"boolean",
"optional":true,
"description":"True if the result was thrown during the evaluation."
},
{
"name":"isOwn",
"optional":true,
"type":"boolean",
"description":"True if the property is owned for the object."
},
{
"name":"symbol",
"$ref":"RemoteObject",
"optional":true,
"description":"Property symbol object, if the property is of the <code>symbol</code> type."
}
]
},
{
"id":"InternalPropertyDescriptor",
"type":"object",
"description":"Object internal property descriptor. This property isn't normally visible in JavaScript code.",
"properties":[
{
"name":"name",
"type":"string",
"description":"Conventional property name."
},
{
"name":"value",
"$ref":"RemoteObject",
"optional":true,
"description":"The value associated with the property."
}
]
},
{
"id":"CallArgument",
"type":"object",
"description":"Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.",
"description":"Symbolic group name that can be used to release multiple objects."
},
{
"name":"includeCommandLineAPI",
"type":"boolean",
"optional":true,
"description":"Determines whether Command Line API should be available during the evaluation."
},
{
"name":"silent",
"type":"boolean",
"optional":true,
"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state."
},
{
"name":"contextId",
"$ref":"ExecutionContextId",
"optional":true,
"description":"Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
},
{
"name":"returnByValue",
"type":"boolean",
"optional":true,
"description":"Whether the result is expected to be a JSON object that should be sent by value."
},
{
"name":"generatePreview",
"type":"boolean",
"optional":true,
"experimental":true,
"description":"Whether preview should be generated for the result."
},
{
"name":"userGesture",
"type":"boolean",
"optional":true,
"experimental":true,
"description":"Whether execution should be treated as initiated by user in the UI."
"description":"Call arguments. All call arguments must belong to the same JavaScript world as the target object."
},
{
"name":"silent",
"type":"boolean",
"optional":true,
"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state."
},
{
"name":"returnByValue",
"type":"boolean",
"optional":true,
"description":"Whether the result is expected to be a JSON object which should be sent by value."
},
{
"name":"generatePreview",
"type":"boolean",
"optional":true,
"experimental":true,
"description":"Whether preview should be generated for the result."
},
{
"name":"userGesture",
"type":"boolean",
"optional":true,
"experimental":true,
"description":"Whether execution should be treated as initiated by user in the UI."
"description":"Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified."
},
{
"name":"objectGroup",
"type":"string",
"optional":true,
"description":"Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object."
"description":"Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
},
{
"name":"getProperties",
"parameters":[
{
"name":"objectId",
"$ref":"RemoteObjectId",
"description":"Identifier of the object to return properties for."
},
{
"name":"ownProperties",
"optional":true,
"type":"boolean",
"description":"If true, returns properties belonging only to the element itself, not to its prototype chain."
},
{
"name":"accessorPropertiesOnly",
"optional":true,
"type":"boolean",
"description":"If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.",
"experimental":true
},
{
"name":"generatePreview",
"type":"boolean",
"optional":true,
"experimental":true,
"description":"Whether preview should be generated for the results."
}
],
"returns":[
{
"name":"result",
"type":"array",
"items":{
"$ref":"PropertyDescriptor"
},
"description":"Object properties."
},
{
"name":"internalProperties",
"optional":true,
"type":"array",
"items":{
"$ref":"InternalPropertyDescriptor"
},
"description":"Internal object properties (only of the element itself)."
},
{
"name":"exceptionDetails",
"$ref":"ExceptionDetails",
"optional":true,
"description":"Exception details."
}
],
"description":"Returns properties of a given object. Object group of the result is inherited from the target object."
},
{
"name":"releaseObject",
"parameters":[
{
"name":"objectId",
"$ref":"RemoteObjectId",
"description":"Identifier of the object to release."
}
],
"description":"Releases remote object with given id."
},
{
"name":"releaseObjectGroup",
"parameters":[
{
"name":"objectGroup",
"type":"string",
"description":"Symbolic object group name."
}
],
"description":"Releases all remote objects that belong to a given group."
},
{
"name":"runIfWaitingForDebugger",
"description":"Tells inspected instance to run if it was waiting for debugger to attach."
},
{
"name":"enable",
"description":"Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context."
},
{
"name":"disable",
"description":"Disables reporting of execution contexts creation."
},
{
"name":"discardConsoleEntries",
"description":"Discards collected exceptions and console API calls."
},
{
"name":"setCustomObjectFormatterEnabled",
"parameters":[
{
"name":"enabled",
"type":"boolean"
}
],
"experimental":true
},
{
"name":"compileScript",
"parameters":[
{
"name":"expression",
"type":"string",
"description":"Expression to compile."
},
{
"name":"sourceURL",
"type":"string",
"description":"Source url to be set for the script."
},
{
"name":"persistScript",
"type":"boolean",
"description":"Specifies whether the compiled script should be persisted."
},
{
"name":"executionContextId",
"$ref":"ExecutionContextId",
"optional":true,
"description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
}
],
"returns":[
{
"name":"scriptId",
"$ref":"ScriptId",
"optional":true,
"description":"Id of the script."
},
{
"name":"exceptionDetails",
"$ref":"ExceptionDetails",
"optional":true,
"description":"Exception details."
}
],
"description":"Compiles expression."
},
{
"name":"runScript",
"parameters":[
{
"name":"scriptId",
"$ref":"ScriptId",
"description":"Id of the script to run."
},
{
"name":"executionContextId",
"$ref":"ExecutionContextId",
"optional":true,
"description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
},
{
"name":"objectGroup",
"type":"string",
"optional":true,
"description":"Symbolic group name that can be used to release multiple objects."
},
{
"name":"silent",
"type":"boolean",
"optional":true,
"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state."
},
{
"name":"includeCommandLineAPI",
"type":"boolean",
"optional":true,
"description":"Determines whether Command Line API should be available during the evaluation."
},
{
"name":"returnByValue",
"type":"boolean",
"optional":true,
"description":"Whether the result is expected to be a JSON object which should be sent by value."
},
{
"name":"generatePreview",
"type":"boolean",
"optional":true,
"description":"Whether preview should be generated for the result."
"description":"Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context."
"description":"<code>this</code> object for this call frame."
},
{
"name":"returnValue",
"$ref":"Runtime.RemoteObject",
"optional":true,
"description":"The value being returned, if the function is at return point."
}
],
"description":"JavaScript call frame. Array of call frames form the call stack."
},
{
"id":"Scope",
"type":"object",
"properties":[
{
"name":"type",
"type":"string",
"enum":[
"global",
"local",
"with",
"closure",
"catch",
"block",
"script",
"eval",
"module"
],
"description":"Scope type."
},
{
"name":"object",
"$ref":"Runtime.RemoteObject",
"description":"Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties."
},
{
"name":"name",
"type":"string",
"optional":true
},
{
"name":"startLocation",
"$ref":"Location",
"optional":true,
"description":"Location in the source code where scope starts"
},
{
"name":"endLocation",
"$ref":"Location",
"optional":true,
"description":"Location in the source code where scope ends"
"description":"Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received."
},
{
"name":"disable",
"description":"Disables debugger for given page."
},
{
"name":"setBreakpointsActive",
"parameters":[
{
"name":"active",
"type":"boolean",
"description":"New value for breakpoints active state."
}
],
"description":"Activates / deactivates all breakpoints on the page."
},
{
"name":"setSkipAllPauses",
"parameters":[
{
"name":"skip",
"type":"boolean",
"description":"New value for skip pauses state."
}
],
"description":"Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."
},
{
"name":"setBreakpointByUrl",
"parameters":[
{
"name":"lineNumber",
"type":"integer",
"description":"Line number to set breakpoint at."
},
{
"name":"url",
"type":"string",
"optional":true,
"description":"URL of the resources to set breakpoint on."
},
{
"name":"urlRegex",
"type":"string",
"optional":true,
"description":"Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified."
},
{
"name":"columnNumber",
"type":"integer",
"optional":true,
"description":"Offset in the line to set breakpoint at."
},
{
"name":"condition",
"type":"string",
"optional":true,
"description":"Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."
}
],
"returns":[
{
"name":"breakpointId",
"$ref":"BreakpointId",
"description":"Id of the created breakpoint for further reference."
},
{
"name":"locations",
"type":"array",
"items":{
"$ref":"Location"
},
"description":"List of the locations this breakpoint resolved into upon addition."
}
],
"description":"Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads."
},
{
"name":"setBreakpoint",
"parameters":[
{
"name":"location",
"$ref":"Location",
"description":"Location to set breakpoint in."
},
{
"name":"condition",
"type":"string",
"optional":true,
"description":"Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."
}
],
"returns":[
{
"name":"breakpointId",
"$ref":"BreakpointId",
"description":"Id of the created breakpoint for further reference."
},
{
"name":"actualLocation",
"$ref":"Location",
"description":"Location this breakpoint resolved into."
}
],
"description":"Sets JavaScript breakpoint at a given location."
},
{
"name":"removeBreakpoint",
"parameters":[
{
"name":"breakpointId",
"$ref":"BreakpointId"
}
],
"description":"Removes JavaScript breakpoint."
},
{
"name":"getPossibleBreakpoints",
"parameters":[
{
"name":"start",
"$ref":"Location",
"description":"Start of range to search possible breakpoint locations in."
"description":"Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.",
"description":"If true, search is case sensitive."
},
{
"name":"isRegex",
"type":"boolean",
"optional":true,
"description":"If true, treats string parameter as regex."
}
],
"returns":[
{
"name":"result",
"type":"array",
"items":{
"$ref":"SearchMatch"
},
"description":"List of search matches."
}
],
"experimental":true,
"description":"Searches for given string in script content."
},
{
"name":"setScriptSource",
"parameters":[
{
"name":"scriptId",
"$ref":"Runtime.ScriptId",
"description":"Id of the script to edit."
},
{
"name":"scriptSource",
"type":"string",
"description":"New content of the script."
},
{
"name":"dryRun",
"type":"boolean",
"optional":true,
"description":" If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code."
}
],
"returns":[
{
"name":"callFrames",
"type":"array",
"optional":true,
"items":{
"$ref":"CallFrame"
},
"description":"New stack trace in case editing has happened while VM was stopped."
},
{
"name":"stackChanged",
"type":"boolean",
"optional":true,
"description":"Whether current call stack was modified after applying the changes."
},
{
"name":"asyncStackTrace",
"$ref":"Runtime.StackTrace",
"optional":true,
"description":"Async stack trace, if any."
},
{
"name":"exceptionDetails",
"optional":true,
"$ref":"Runtime.ExceptionDetails",
"description":"Exception details if any."
}
],
"description":"Edits JavaScript source live."
},
{
"name":"restartFrame",
"parameters":[
{
"name":"callFrameId",
"$ref":"CallFrameId",
"description":"Call frame identifier to evaluate on."
}
],
"returns":[
{
"name":"callFrames",
"type":"array",
"items":{
"$ref":"CallFrame"
},
"description":"New stack trace."
},
{
"name":"asyncStackTrace",
"$ref":"Runtime.StackTrace",
"optional":true,
"description":"Async stack trace, if any."
}
],
"description":"Restarts particular call frame from the beginning."
},
{
"name":"getScriptSource",
"parameters":[
{
"name":"scriptId",
"$ref":"Runtime.ScriptId",
"description":"Id of the script to get source for."
}
],
"returns":[
{
"name":"scriptSource",
"type":"string",
"description":"Script source."
}
],
"description":"Returns source for the script with given id."
},
{
"name":"setPauseOnExceptions",
"parameters":[
{
"name":"state",
"type":"string",
"enum":[
"none",
"uncaught",
"all"
],
"description":"Pause on exceptions mode."
}
],
"description":"Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>."
},
{
"name":"evaluateOnCallFrame",
"parameters":[
{
"name":"callFrameId",
"$ref":"CallFrameId",
"description":"Call frame identifier to evaluate on."
},
{
"name":"expression",
"type":"string",
"description":"Expression to evaluate."
},
{
"name":"objectGroup",
"type":"string",
"optional":true,
"description":"String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)."
},
{
"name":"includeCommandLineAPI",
"type":"boolean",
"optional":true,
"description":"Specifies whether command line API should be available to the evaluated expression, defaults to false."
},
{
"name":"silent",
"type":"boolean",
"optional":true,
"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state."
},
{
"name":"returnByValue",
"type":"boolean",
"optional":true,
"description":"Whether the result is expected to be a JSON object that should be sent by value."
},
{
"name":"generatePreview",
"type":"boolean",
"optional":true,
"experimental":true,
"description":"Whether preview should be generated for the result."
"description":"Object wrapper for the evaluation result."
},
{
"name":"exceptionDetails",
"$ref":"Runtime.ExceptionDetails",
"optional":true,
"description":"Exception details."
}
],
"description":"Evaluates expression on a given call frame."
},
{
"name":"setVariableValue",
"parameters":[
{
"name":"scopeNumber",
"type":"integer",
"description":"0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually."
},
{
"name":"variableName",
"type":"string",
"description":"Variable name."
},
{
"name":"newValue",
"$ref":"Runtime.CallArgument",
"description":"New variable value."
},
{
"name":"callFrameId",
"$ref":"CallFrameId",
"description":"Id of callframe that holds variable."
}
],
"description":"Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually."
},
{
"name":"setAsyncCallStackDepth",
"parameters":[
{
"name":"maxDepth",
"type":"integer",
"description":"Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default)."
}
],
"description":"Enables or disables async call stacks tracking."
},
{
"name":"setBlackboxPatterns",
"parameters":[
{
"name":"patterns",
"type":"array",
"items":{
"type":"string"
},
"description":"Array of regexps that will be used to check script url for blackbox state."
}
],
"experimental":true,
"description":"Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful."
},
{
"name":"setBlackboxedRanges",
"parameters":[
{
"name":"scriptId",
"$ref":"Runtime.ScriptId",
"description":"Id of the script."
},
{
"name":"positions",
"type":"array",
"items":{
"$ref":"ScriptPosition"
}
}
],
"experimental":true,
"description":"Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted."
}
],
"events":[
{
"name":"scriptParsed",
"parameters":[
{
"name":"scriptId",
"$ref":"Runtime.ScriptId",
"description":"Identifier of the script parsed."
},
{
"name":"url",
"type":"string",
"description":"URL or name of the script parsed (if any)."
},
{
"name":"startLine",
"type":"integer",
"description":"Line offset of the script within the resource with given URL (for script tags)."
},
{
"name":"startColumn",
"type":"integer",
"description":"Column offset of the script within the resource with given URL."
},
{
"name":"endLine",
"type":"integer",
"description":"Last line of the script."
},
{
"name":"endColumn",
"type":"integer",
"description":"Length of the last line of the script."
"description":"Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.",
"experimental":true
},
{
"name":"stopPreciseCoverage",
"description":"Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.",
"experimental":true
},
{
"name":"takePreciseCoverage",
"returns":[
{
"name":"result",
"type":"array",
"items":{
"$ref":"ScriptCoverage"
},
"description":"Coverage data for the current isolate."
}
],
"description":"Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.",
"experimental":true
},
{
"name":"getBestEffortCoverage",
"returns":[
{
"name":"result",
"type":"array",
"items":{
"$ref":"ScriptCoverage"
},
"description":"Coverage data for the current isolate."
}
],
"description":"Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.",
"description":"If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.",
"description":"If heap objects tracking has been started then backend may send update for one or more fragments",
"parameters":[
{
"name":"statsUpdate",
"type":"array",
"items":{
"type":"integer"
},
"description":"An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment."
"description":"This objects contains info about a request coming from browser cache.",
"properties":[
{
"name":"beforeRequest",
"description":"State of a cache entry before the request. Leave out this field if the information is not available.",
"optional":true,
"$ref":"CacheData"
},
{
"name":"afterRequest",
"description":"State of a cache entry after the request. Leave out this field if the information is not available.",
"optional":true,
"$ref":"CacheData"
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"CacheData",
"description":"Describes the cache data for beforeRequest and afterRequest.",
"properties":[
{
"type":"string",
"name":"expires",
"description":"Expiration time of the cache entry.",
"optional":true
},
{
"type":"string",
"name":"lastAccess",
"description":"The last time the cache entry was opened."
},
{
"type":"string",
"name":"eTag",
"description":"Etag"
},
{
"type":"integer",
"name":"hitCount",
"description":"The number of times the cache entry has been opened."
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Content",
"description":"This object describes details about response content (embedded in <response> object).",
"properties":[
{
"type":"integer",
"name":"size",
"description":"Length of the returned content in bytes. Should be equal to response.bodySize if there is no compression and bigger when the content has been compressed."
},
{
"type":"integer",
"name":"compression",
"description":"Number of bytes saved. Leave out this field if the information is not available.",
"optional":true
},
{
"type":"string",
"name":"mimeType",
"description":"MIME type of the response text (value of the Content-Type response header). The charset attribute of the MIME type is included (if available)."
},
{
"type":"string",
"name":"text",
"description":"Response body sent from the server or loaded from the browser cache. This field is populated with textual content only. The text field is either HTTP decoded text or a encoded (e.g. \"base64\") representation of the response body. Leave out this field if the information is not available.",
"optional":true
},
{
"type":"string",
"name":"encoding",
"description":"Encoding used for response text field e.g \"base64\". Leave out this field if the text field is HTTP decoded (decompressed & unchunked), than trans-coded from its original character set into UTF-8.",
"optional":true
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Cookie",
"description":"This object contains list of all cookies (used in <request> and <response> objects).",
"properties":[
{
"type":"string",
"name":"name",
"description":"The name of the cookie."
},
{
"type":"string",
"name":"value",
"description":"The cookie value."
},
{
"type":"string",
"name":"path",
"description":"The path pertaining to the cookie.",
"optional":true
},
{
"type":"string",
"name":"domain",
"description":"The host of the cookie.",
"optional":true
},
{
"type":"string",
"name":"expires",
"description":"Cookie expiration time. (ISO 8601 - YYYY-MM-DDThh:mm:ss.sTZD, e.g. 2009-07-24T19:20:30.123+02:00).",
"optional":true
},
{
"type":"boolean",
"name":"httpOnly",
"description":"Set to true if the cookie is HTTP only, false otherwise.",
"optional":true
},
{
"type":"boolean",
"name":"secure",
"description":"True if the cookie was transmitted over ssl, false otherwise.",
"optional":true
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Creator",
"description":"Creator and browser objects share the same structure.",
"properties":[
{
"type":"string",
"name":"name",
"description":"Name of the application/browser used to export the log."
},
{
"type":"string",
"name":"version",
"description":"Version of the application/browser used to export the log."
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Entry",
"description":"This object represents an array with all exported HTTP requests. Sorting entries by startedDateTime (starting from the oldest) is preferred way how to export data since it can make importing faster. However the reader application should always make sure the array is sorted (if required for the import).",
"properties":[
{
"type":"string",
"name":"pageref",
"description":"Reference to the parent page. Leave out this field if the application does not support grouping by pages.",
"optional":true
},
{
"type":"string",
"name":"startedDateTime",
"description":"Date and time stamp of the request start (ISO 8601 - YYYY-MM-DDThh:mm:ss.sTZD)."
},
{
"type":"number",
"name":"time",
"description":"Total elapsed time of the request in milliseconds. This is the sum of all timings available in the timings object (i.e. not including -1 values) ."
},
{
"name":"request",
"description":"Detailed info about the request.",
"$ref":"Request"
},
{
"name":"response",
"description":"Detailed info about the response.",
"$ref":"Response"
},
{
"name":"cache",
"description":"Info about cache usage.",
"$ref":"Cache"
},
{
"name":"timings",
"description":"Detailed timing info about request/response round trip.",
"$ref":"Timings"
},
{
"type":"string",
"name":"serverIPAddress",
"description":"IP address of the server that was connected (result of DNS resolution).",
"optional":true
},
{
"type":"string",
"name":"connection",
"description":"Unique ID of the parent TCP/IP connection, can be the client or server port number. Note that a port number doesn't have to be unique identifier in cases where the port is shared for more connections. If the port isn't available for the application, any other unique connection ID can be used instead (e.g. connection index). Leave out this field if the application doesn't support this info.",
"optional":true
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"HAR",
"description":"Parent container for HAR log.",
"properties":[
{
"name":"log",
"$ref":"Log"
}
]
},
{
"type":"object",
"id":"Log",
"description":"This object represents the root of exported data.",
"properties":[
{
"type":"string",
"name":"version",
"description":"Version number of the format. If empty, string \"1.1\" is assumed by default."
},
{
"name":"creator",
"description":"Name and version info of the log creator application.",
"$ref":"Creator"
},
{
"name":"browser",
"description":"Name and version info of used browser.",
"optional":true,
"$ref":"Creator"
},
{
"type":"array",
"name":"pages",
"description":"List of all exported (tracked) pages. Leave out this field if the application does not support grouping by pages.",
"optional":true,
"items":{
"$ref":"Page"
}
},
{
"type":"array",
"name":"entries",
"description":"List of all exported (tracked) requests.",
"items":{
"$ref":"Entry"
}
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"NameValuePair",
"description":"Describes a name/value pair.",
"properties":[
{
"type":"string",
"name":"name",
"description":"Name of the pair."
},
{
"type":"string",
"name":"value",
"description":"Value of the pair."
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Page",
"description":"This object represents list of exported pages.",
"properties":[
{
"type":"string",
"name":"startedDateTime",
"description":"Date and time stamp for the beginning of the page load (ISO 8601 - YYYY-MM-DDThh:mm:ss.sTZD, e.g. 2009-07-24T19:20:30.45+01:00)."
},
{
"type":"string",
"name":"id",
"description":"Unique identifier of a page within the <log>. Entries use it to refer the parent page."
},
{
"type":"string",
"name":"title",
"description":"Page title."
},
{
"name":"pageTimings",
"description":"Detailed timing info about page load.",
"$ref":"PageTimings"
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"PageTimings",
"description":"This object describes timings for various events (states) fired during the page load. All times are specified in milliseconds. If a time info is not available appropriate field is set to -1.",
"properties":[
{
"type":"number",
"name":"onContentLoad",
"description":"Content of the page loaded. Number of milliseconds since page load started (page.startedDateTime). Use -1 if the timing does not apply to the current request.",
"optional":true
},
{
"type":"number",
"name":"onLoad",
"description":"Page is loaded (onLoad event fired). Number of milliseconds since page load started (page.startedDateTime). Use -1 if the timing does not apply to the current request.",
"optional":true
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Param",
"description":"List of posted parameters, if any (embedded in <postData> object).",
"properties":[
{
"type":"string",
"name":"name",
"description":"name of a posted parameter."
},
{
"type":"string",
"name":"value",
"description":"value of a posted parameter or content of a posted file.",
"optional":true
},
{
"type":"string",
"name":"fileName",
"description":"name of a posted file.",
"optional":true
},
{
"type":"string",
"name":"contentType",
"description":"content type of a posted file.",
"optional":true
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"PostData",
"description":"This object describes posted data, if any (embedded in <request> object).",
"properties":[
{
"type":"string",
"name":"mimeType",
"description":"Mime type of posted data."
},
{
"type":"array",
"name":"params",
"description":"List of posted parameters (in case of URL encoded parameters).",
"items":{
"$ref":"Param"
}
},
{
"type":"string",
"name":"text",
"description":"Plain text posted data"
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Request",
"description":"This object contains detailed info about performed request.",
"properties":[
{
"type":"string",
"name":"method",
"description":"Request method (GET, POST, ...)."
},
{
"type":"string",
"name":"url",
"description":"Absolute URL of the request (fragments are not included)."
},
{
"type":"string",
"name":"httpVersion",
"description":"Request HTTP Version."
},
{
"type":"array",
"name":"cookies",
"description":"List of cookie objects.",
"items":{
"$ref":"Cookie"
}
},
{
"type":"array",
"name":"headers",
"description":"List of header objects.",
"items":{
"$ref":"NameValuePair"
}
},
{
"type":"array",
"name":"queryString",
"description":"List of query parameter objects.",
"items":{
"$ref":"NameValuePair"
}
},
{
"name":"postData",
"description":"Posted data info.",
"optional":true,
"$ref":"PostData"
},
{
"type":"integer",
"name":"headersSize",
"description":"Total number of bytes from the start of the HTTP request message until (and including) the double CRLF before the body. Set to -1 if the info is not available."
},
{
"type":"integer",
"name":"bodySize",
"description":"Size of the request body (POST data payload) in bytes. Set to -1 if the info is not available."
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Response",
"description":"This object contains detailed info about the response.",
"properties":[
{
"type":"integer",
"name":"status",
"description":"Response status."
},
{
"type":"string",
"name":"statusText",
"description":"Response status description."
},
{
"type":"string",
"name":"httpVersion",
"description":"Response HTTP Version."
},
{
"type":"array",
"name":"cookies",
"description":"List of cookie objects.",
"items":{
"$ref":"Cookie"
}
},
{
"type":"array",
"name":"headers",
"description":"List of header objects.",
"items":{
"$ref":"NameValuePair"
}
},
{
"name":"content",
"description":"Details about the response body.",
"$ref":"Content"
},
{
"type":"string",
"name":"redirectURL",
"description":"Redirection target URL from the Location response header."
},
{
"type":"integer",
"name":"headersSize",
"description":"Total number of bytes from the start of the HTTP response message until (and including) the double CRLF before the body. Set to -1 if the info is not available."
},
{
"type":"integer",
"name":"bodySize",
"description":"Size of the received response body in bytes. Set to zero in case of responses coming from the cache (304). Set to -1 if the info is not available."
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",
"optional":true
}
]
},
{
"type":"object",
"id":"Timings",
"description":"This object describes various phases within request-response round trip. All times are specified in milliseconds.",
"properties":[
{
"type":"number",
"name":"blocked",
"description":"Time spent in a queue waiting for a network connection. Use -1 if the timing does not apply to the current request.",
"optional":true
},
{
"type":"number",
"name":"dns",
"description":"DNS resolution time. The time required to resolve a host name. Use -1 if the timing does not apply to the current request.",
"optional":true
},
{
"type":"number",
"name":"connect",
"description":"Time required to create TCP connection. Use -1 if the timing does not apply to the current request.",
"optional":true
},
{
"type":"number",
"name":"send",
"description":"Time required to send HTTP request to the server."
},
{
"type":"number",
"name":"wait",
"description":"Waiting for a response from the server."
},
{
"type":"number",
"name":"receive",
"description":"Time required to read entire response from the server (or cache)."
},
{
"type":"number",
"name":"ssl",
"description":"Time required for SSL/TLS negotiation. If this field is defined then the time is also included in the connect field (to ensure backward compatibility with HAR 1.1). Use -1 if the timing does not apply to the current request.",
"optional":true
},
{
"type":"string",
"name":"comment",
"description":"A comment provided by the user or the application.",