Chrome Remote Interface v0.2.0 ChromeRemoteInterface.RPC.Page View Source
Actions and events related to the inspected page belong to the page domain.
Link to this section Summary
Functions
Deprecated, please use addScriptToEvaluateOnNewDocument instead
Evaluates given script in every frame upon creation (before loading frame’s scripts)
Brings page to front (activates tab)
Capture page screenshot
Clears the overriden device metrics
Clears the overridden Device Orientation
Clears the overriden Geolocation Position and Error
Creates an isolated world for the given frame
Deletes browser cookie with given name, domain and path
Disables page domain notifications
Enables page domain notifications
Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies
field
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
Returns content of the given resource
Returns present frame / resource tree structure
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
Deprecated, please use removeScriptToEvaluateOnNewDocument instead
Removes given script from the list
Acknowledges that a screencast frame has been received by the frontend
Searches for given string in resource content
Enable Chrome’s experimental ad filter on all sites
Controls whether browser will open a new inspector window for connected pages
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)
Overrides the Device Orientation
Sets given markup as the document’s HTML
Set the behavior when downloading a file
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable
Controls whether page will emit lifecycle events
Toggles mouse event-based touch event emulation
Starts sending each frame using the screencastFrame
event
Force the page stop all navigations and pending resource fetches
Stops sending each frame in the screencastFrame
Link to this section Functions
Deprecated, please use addScriptToEvaluateOnNewDocument instead.
Parameters:
scriptSource -
Evaluates given script in every frame upon creation (before loading frame’s scripts).
Parameters:
source -
Brings page to front (activates tab).
Parameters:
Capture page screenshot.
Parameters:
format -
Clears the overriden device metrics.
Parameters:
Clears the overridden Device Orientation.
Parameters:
Clears the overriden Geolocation Position and Error.
Parameters:
Creates an isolated world for the given frame.
Parameters:
frameId -
Deletes browser cookie with given name, domain and path.
Parameters:
cookieName -
Disables page domain notifications.
Parameters:
Enables page domain notifications.
Parameters:
Parameters:
Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies
field.
Parameters:
Returns present frame tree structure.
Parameters:
Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
Parameters:
Returns content of the given resource.
Parameters:
frameId -
Returns present frame / resource tree structure.
Parameters:
Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
Parameters:
accept -
Print page as PDF.
Parameters:
landscape -
Reloads given page optionally ignoring the cache.
Parameters:
ignoreCache -
Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
Parameters:
identifier -
Removes given script from the list.
Parameters:
identifier -
Parameters:
Acknowledges that a screencast frame has been received by the frontend.
Parameters:
sessionId -
Searches for given string in resource content.
Parameters:
frameId -
Enable Chrome’s experimental ad filter on all sites.
Parameters:
enabled -
Controls whether browser will open a new inspector window for connected pages.
Parameters:
autoAttach -
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:
width -
Overrides the Device Orientation.
Parameters:
alpha -
Sets given markup as the document’s HTML.
Parameters:
frameId -
Set the behavior when downloading a file.
Parameters:
behavior -
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
Parameters:
latitude -
Controls whether page will emit lifecycle events.
Parameters:
enabled -
Toggles mouse event-based touch event emulation.
Parameters:
enabled -
Starts sending each frame using the screencastFrame
event.
Parameters:
format -
Force the page stop all navigations and pending resource fetches.
Parameters:
Stops sending each frame in the screencastFrame
.
Parameters: