1.0: Page
Contents
Actions and events related to the inspected page belong to the page domain.
Commands
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.