tot: Page

Actions and events related to the inspected page belong to the page domain.

Commands

Page.clearGeolocationOverride

request: {
"id": <number>,
"method": "Page.clearGeolocationOverride"
}
response: {
"id": <number>,
"error": <object>
}

Clears the overriden Geolocation Position and Error.

Page.disable

request: {
"id": <number>,
"method": "Page.disable"
}
response: {
"id": <number>,
"error": <object>
}

Disables page domain notifications.

Page.enable

request: {
"id": <number>,
"method": "Page.enable"
}
response: {
"id": <number>,
"error": <object>
}

Enables page domain notifications.

Page.navigate

request: {
"id": <number>,
"method": "Page.navigate",
"params": {
  "url": <string>
}
}
response: {
"id": <number>,
"error": <object>
}

Navigates current page to the given URL.

Parameters

url
( string )
URL to navigate the page to.

Page.reload

request: {
"id": <number>,
"method": "Page.reload",
"params": {
  "ignoreCache": <boolean>,
  "scriptToEvaluateOnLoad": <string>
}
}
response: {
"id": <number>,
"error": <object>
}

Reloads given page optionally ignoring the cache.

Parameters

ignoreCache
( optional boolean )
If true, browser cache is ignored (as if the user pressed Shift+refresh).
scriptToEvaluateOnLoad
( optional string )
If set, the script will be injected into all frames of the inspected page after reload.

Page.setGeolocationOverride

request: {
"id": <number>,
"method": "Page.setGeolocationOverride",
"params": {
  "latitude": <number>,
  "longitude": <number>,
  "accuracy": <number>
}
}
response: {
"id": <number>,
"error": <object>
}

Overrides the Geolocation Position or Error.

Parameters

latitude
( optional number )
Mock longitude
longitude
( optional number )
Mock latitude
accuracy
( optional number )
Mock accuracy

Notifications

Page.domContentEventFired

{
"method": "Page.domContentEventFired",
"params": {
  "timestamp": <number>
}
}

Parameters

timestamp
( number )

Page.frameAttached

{
"method": "Page.frameAttached",
"params": {
  "frameId": <FrameId>
}
}

Fired when frame has been attached to its parent.

Parameters

frameId
( FrameId )
Id of the frame that has been attached.

Page.frameDetached

{
"method": "Page.frameDetached",
"params": {
  "frameId": <FrameId>
}
}

Fired when frame has been detached from its parent.

Parameters

frameId
( FrameId )
Id of the frame that has been detached.

Page.frameNavigated

{
"method": "Page.frameNavigated",
"params": {
  "frame": <Frame>
}
}

Fired once navigation of the frame has completed. Frame is now associated with the new loader.

Parameters

frame
( Frame )
Frame object.

Page.loadEventFired

{
"method": "Page.loadEventFired",
"params": {
  "timestamp": <number>
}
}

Parameters

timestamp
( number )

Types

Frame: object

id
( string )
Frame unique identifier.
loaderId
Identifier of the loader associated with this frame.
mimeType
( string )
Frame document's mimeType as determined by the browser.
name
( optional string )
Frame's name as specified in the tag.
parentId
( optional string )
Parent frame identifier.
securityOrigin
( string )
Frame document's security origin.
url
( string )
Frame document's URL.

FrameId: string

ResourceType: enumerated string

[ "Document" , "Font" , "Image" , "Other" , "Script" , "Stylesheet" , "WebSocket" , "XHR" ]