Chrome Remote Interface v0.4.1 ChromeRemoteInterface.RPC.Page View Source
Actions and events related to the inspected page belong to the page domain.
Link to this section Summary
Functions
Evaluates given script in every frame upon creation (before loading frame's scripts).
Brings page to front (activates tab).
Capture page screenshot.
Creates an isolated world for the given frame.
Disables page domain notifications.
Enables page domain notifications.
Parameters
Returns present frame tree structure.
Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
Returns navigation history for the current page.
Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
Navigates current page to the given URL.
Navigates current page to the given history entry.
Print page as PDF.
Reloads given page optionally ignoring the cache.
Removes given script from the list.
Resets navigation history for the current page.
Sets given markup as the document's HTML.
Force the page stop all navigations and pending resource fetches.
Link to this section Functions
addScriptToEvaluateOnNewDocument(page_pid) View Source
Evaluates given script in every frame upon creation (before loading frame's scripts).
Parameters:
source -
addScriptToEvaluateOnNewDocument(page_pid, parameters) View Source
addScriptToEvaluateOnNewDocument(page_pid, parameters, opts) View Source
bringToFront(page_pid) View Source
Brings page to front (activates tab).
Parameters:
bringToFront(page_pid, parameters) View Source
bringToFront(page_pid, parameters, opts) View Source
captureScreenshot(page_pid) View Source
Capture page screenshot.
Parameters:
format -
captureScreenshot(page_pid, parameters) View Source
captureScreenshot(page_pid, parameters, opts) View Source
createIsolatedWorld(page_pid) View Source
Creates an isolated world for the given frame.
Parameters:
frameId -
createIsolatedWorld(page_pid, parameters) View Source
createIsolatedWorld(page_pid, parameters, opts) View Source
disable(page_pid) View Source
Disables page domain notifications.
Parameters:
disable(page_pid, parameters) View Source
disable(page_pid, parameters, opts) View Source
enable(page_pid) View Source
Enables page domain notifications.
Parameters:
enable(page_pid, parameters) View Source
enable(page_pid, parameters, opts) View Source
experimental?() View Source
getAppManifest(page_pid) View Source
Parameters:
getAppManifest(page_pid, parameters) View Source
getAppManifest(page_pid, parameters, opts) View Source
getFrameTree(page_pid) View Source
Returns present frame tree structure.
Parameters:
getFrameTree(page_pid, parameters) View Source
getFrameTree(page_pid, parameters, opts) View Source
getLayoutMetrics(page_pid) View Source
Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
Parameters:
getLayoutMetrics(page_pid, parameters) View Source
getLayoutMetrics(page_pid, parameters, opts) View Source
handleJavaScriptDialog(page_pid) View Source
Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
Parameters:
accept -
handleJavaScriptDialog(page_pid, parameters) View Source
handleJavaScriptDialog(page_pid, parameters, opts) View Source
printToPDF(page_pid) View Source
Print page as PDF.
Parameters:
landscape -
date
: formatted print datetitle
: document titleurl
: document locationpageNumber
: current page numbertotalPages
: total pages in the document
For example, <span class=title></span>
would generate span containing the title.footerTemplate - headerTemplate
.preferCSSPageSize -
printToPDF(page_pid, parameters) View Source
printToPDF(page_pid, parameters, opts) View Source
reload(page_pid) View Source
Reloads given page optionally ignoring the cache.
Parameters:
ignoreCache -
reload(page_pid, parameters) View Source
reload(page_pid, parameters, opts) View Source
removeScriptToEvaluateOnNewDocument(page_pid) View Source
Removes given script from the list.
Parameters:
identifier -
removeScriptToEvaluateOnNewDocument(page_pid, parameters) View Source
removeScriptToEvaluateOnNewDocument(page_pid, parameters, opts) View Source
setDocumentContent(page_pid) View Source
Sets given markup as the document's HTML.
Parameters:
frameId -
setDocumentContent(page_pid, parameters) View Source
setDocumentContent(page_pid, parameters, opts) View Source
stopLoading(page_pid) View Source
Force the page stop all navigations and pending resource fetches.
Parameters: