tot: Page
Contents
Actions and events related to the inspected page belong to the page domain.
Commands
Page.clearGeolocationOverride
request: {
"id": <number>,
"method": "Page.clearGeolocationOverride"
"id": <number>,
"error": <object>
"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"
"id": <number>,
"error": <object>
"id": <number>,
"method": "Page.disable"
}
response: {"id": <number>,
"error": <object>
}
Disables page domain notifications.
Page.enable
request: {
"id": <number>,
"method": "Page.enable"
"id": <number>,
"error": <object>
"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>
}
"id": <number>,
"error": <object>
"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>
}
"id": <number>,
"error": <object>
"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>
}
"id": <number>,
"error": <object>
"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>
}
"method": "Page.domContentEventFired",
"params": {
"timestamp": <number>
}
}
Parameters
timestamp
(
number
)
Page.frameAttached
Fired when frame has been attached to its parent.
Parameters
frameId
(
FrameId
)
Id of the frame that has been attached.
Page.frameDetached
Fired when frame has been detached from its parent.
Parameters
frameId
(
FrameId
)
Id of the frame that has been detached.
Page.frameNavigated
Fired once navigation of the frame has completed. Frame is now associated with the new loader.
Parameters
frame
(
Frame
)
Frame object.
Types
Frame: object
id
(
string
)
Frame unique identifier.
loaderId
(
Network.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.