Page
Types
Indicates whether a frame has been identified as an ad and why.
Indicates whether a frame has been identified as an ad.
Encapsulates the script ancestry and the root script filterlist rule that caused the frame to be labelled as an ad. Only created when ancestryChain
is not empty.
Identifies the script which caused a script or frame to be labelled as an ad.
Error while paring app manifest.
Parsed app manifest properties.
List of not restored reasons for back-forward cache.
Types of not restored reasons for back-forward cache.
Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.
Per-script compilation cache parameters for Page.produceCompilationCache
Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.
Indicates whether the frame is cross-origin isolated and why it is the case.
Javascript dialog type.
Fired when opening document to write to.
Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.
Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.
Emitted only when page.interceptFileChooser
is enabled.
Information about the Frame on the page.
Fired when frame has been attached to its parent.
Fired when frame no longer has a scheduled navigation.
Fired when frame has been detached from its parent.
Fired once navigation of the frame has completed. Frame is now associated with the new loader.
Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.
Information about the Resource on the page.
Information about the Frame hierarchy along with their cached resources.
Fired when frame schedules a potential navigation.
Fired when frame has started loading.
Fired when a navigation starts. This event is fired for both renderer-initiated and browser-initiated navigations. For renderer-initiated navigations, the event is fired after frameRequestedNavigation
. Navigation may still be cancelled after the event is issued. Multiple events can be fired for a single navigation, for example, when a same-document navigation becomes a cross-document navigation (such as in the case of a frameset).
Fired when frame has stopped loading.
Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.
Information about the Frame hierarchy.
The image definition used in both icon and screenshot.
The installability error
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
Layout viewport position and dimensions.
Fired for lifecycle events (navigation, load, paint, etc) in the current target (including local frames).
Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
Navigation history entry.
The type of a frameNavigated event.
Status for an Origin Trial.
Origin Trial(https://www.chromium.org/blink/origin-trials) support. Status for an Origin Trial token.
Reason for a permissions policy feature to be disabled.
All Permissions Policy features. This enum should match the one defined in services/network/public/cpp/permissions_policy/permissions_policy_features.json5. LINT.IfChange(PermissionsPolicyFeature)
The referring-policy used for the navigation.
Compressed image data requested by the startScreencast
.
Fired when the page with currently enabled screencast was shown or hidden `.
Font families collection for a script.
Indicates whether the frame is a secure context and why it is the case.
Additional information about the frame document's security origin.
Transition type.
Properties
Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.
Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.
Fired when opening document to write to.
Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.
Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.
Emitted only when page.interceptFileChooser
is enabled.
Fired when frame has been attached to its parent.
Fired when frame no longer has a scheduled navigation.
Fired when frame has been detached from its parent.
Fired once navigation of the frame has completed. Frame is now associated with the new loader.
Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.
Fired when frame schedules a potential navigation.
Fired when frame has started loading.
Fired when a navigation starts. This event is fired for both renderer-initiated and browser-initiated navigations. For renderer-initiated navigations, the event is fired after frameRequestedNavigation
. Navigation may still be cancelled after the event is issued. Multiple events can be fired for a single navigation, for example, when a same-document navigation becomes a cross-document navigation (such as in the case of a frameset).
Fired when frame has stopped loading.
Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.
Fired when interstitial page was hidden
Fired when interstitial page was shown
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
Fired for lifecycle events (navigation, load, paint, etc) in the current target (including local frames).
Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
Compressed image data requested by the startScreencast
.
Fired when the page with currently enabled screencast was shown or hidden `.
Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.
Functions
Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.
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.
Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.
Clears seeded compilation cache.
Clears the overridden device metrics.
Clears the overridden Device Orientation.
Clears the overridden Geolocation Position and Error.
Tries to close page, running its beforeunload hooks, if any.
Crashes renderer on the IO thread, generates minidumps.
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.
Generates a report for testing.
Returns the unique (PWA) app id. Only returns values if the feature flag 'WebAppEnableManifestId' is enabled
Gets the processed manifest for this current document. This API always waits for the manifest to be loaded. If manifestId is provided, and it does not match the manifest of the current document, this API errors out. If there is not a loaded page, this API errors out immediately.
Returns present frame tree structure.
Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA installation.
Returns navigation history for the current page.
Get Origin Trials on given frame.
Get Permissions Policy state on given frame.
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.
Requests backend to produce compilation cache for the specified scripts. scripts
are appended to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: Page.compilationCacheProduced
.
Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
Removes given script from the list.
Resets navigation history for the current page.
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.
Enable page Content Security Policy by-passing.
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.
Set generic font families.
Set default font sizes.
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened
is emitted.
Controls whether page will emit lifecycle events.
Enable/disable prerendering manually.
Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
Toggles mouse event-based touch event emulation.
Tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/
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
.
Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.