Chrome Remote Interface v0.0.4 ChromeRemoteInterface.RPC.Page View Source
Actions and events related to the inspected page belong to the page domain.
Link to this section Summary
Functions
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 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
Should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation
Reloads given page optionally ignoring the cache
Acknowledges that a screencast frame has been received by the frontend
Searches for given string in resource content
Controls whether browser will open a new inspector window for connected pages
Toggles navigation throttling which allows programatic control over navigation and redirect response
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
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable
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
Parameters:
scriptSource -
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 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 -
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 -
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 -
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
Parameters:
latitude -
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: