Expand description
Actions and events related to the inspected page belong to the page domain.
Structs§
- Indicates whether a frame has been identified as an ad and why. AdFrameStatus
- Identifies the bottom-most script which caused the frame to be labelled as an ad. AdScriptId
- Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation. addCompilationCache
- Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation. addCompilationCache
- Evaluates given script in every frame upon creation (before loading frame’s scripts). addScriptToEvaluateOnNewDocument
- Evaluates given script in every frame upon creation (before loading frame’s scripts). addScriptToEvaluateOnNewDocument
- Error while paring app manifest. AppManifestError
- Parsed app manifest properties. AppManifestParsedProperties
- Brings page to front (activates tab). bringToFront
- Brings page to front (activates tab). bringToFront
- Capture page screenshot. captureScreenshot
- Capture page screenshot. captureScreenshot
- Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles. captureSnapshot
- Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles. captureSnapshot
- Clears seeded compilation cache. clearCompilationCache
- Clears seeded compilation cache. clearCompilationCache
- Tries to close page, running its beforeunload hooks, if any. close
- Tries to close page, running its beforeunload hooks, if any. close
- Per-script compilation cache parameters for
Page.produceCompilationCache
CompilationCacheParams - Crashes renderer on the IO thread, generates minidumps. crash
- Crashes renderer on the IO thread, generates minidumps. crash
- Creates an isolated world for the given frame. createIsolatedWorld
- Creates an isolated world for the given frame. createIsolatedWorld
- Disables page domain notifications. disable
- Disables page domain notifications. disable
- Enables page domain notifications. enable
- Enables page domain notifications. enable
- 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. backForwardCacheNotUsed
- Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled. compilationCacheProduced
- Fired when opening document to write to. documentOpened
- Emitted only when
page.interceptFileChooser
is enabled. fileChooserOpened - Fired when frame has been attached to its parent. frameAttached
- Fired when frame has been detached from its parent. frameDetached
- Fired once navigation of the frame has completed. Frame is now associated with the new loader. frameNavigated
- Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued. frameRequestedNavigation
- Fired when frame has started loading. frameStartedLoading
- Fired when frame has stopped loading. frameStoppedLoading
- Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached. frameSubtreeWillBeDetached
- Fired when interstitial page was hidden interstitialHidden
- Fired when interstitial page was shown interstitialShown
- Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed. javascriptDialogClosed
- Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open. javascriptDialogOpening
- Fired for top level page lifecycle events such as navigation, load, paint, etc. lifecycleEvent
- Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation. navigatedWithinDocument
- Compressed image data requested by the
startScreencast
. screencastFrame - Fired when the page with currently enabled screencast was shown or hidden `. screencastVisibilityChanged
- Fired when a new window is going to be opened, via window.open(), link click, form submission, etc. windowOpen
- The manifest of a webapp, see https://www.w3.org/TR/appmanifest/#dfn-manifest. Some fields do not appear in the standard since the API is designed to expose more browser internal states. FileFilter
- Generic font families collection. FontFamilies
- Default font sizes. FontSizes
- Information about the Frame on the page. Frame
- Unique frame identifier. FrameId
- Information about the Resource on the page. FrameResource
- Information about the Frame hierarchy along with their cached resources. FrameResourceTree
- Information about the Frame hierarchy. FrameTree
- Generates a report for testing. generateTestReport
- Generates a report for testing. generateTestReport
- Returns the unique (PWA) app id. Only returns values if the feature flag ‘WebAppEnableManifestId’ is enabled getAppId
- Returns the unique (PWA) app id. Only returns values if the feature flag ‘WebAppEnableManifestId’ is enabled getAppId
- 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. getAppManifest
- 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. getAppManifest
- Returns present frame tree structure. getFrameTree
- Returns present frame tree structure. getFrameTree
- Returns metrics relating to the layouting of the page, such as viewport bounds/scale. getLayoutMetrics
- Returns metrics relating to the layouting of the page, such as viewport bounds/scale. getLayoutMetrics
- Returns navigation history for the current page. getNavigationHistory
- Returns navigation history for the current page. getNavigationHistory
- Get Origin Trials on given frame. getOriginTrials
- Get Origin Trials on given frame. getOriginTrials
- Get Permissions Policy state on given frame. getPermissionsPolicyState
- Get Permissions Policy state on given frame. getPermissionsPolicyState
- Returns content of the given resource. getResourceContent
- Returns content of the given resource. getResourceContent
- Returns present frame / resource tree structure. getResourceTree
- Returns present frame / resource tree structure. getResourceTree
- Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload). handleJavaScriptDialog
- Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload). handleJavaScriptDialog
- The image definition used in both icon and screenshot. ImageResource
- The installability error InstallabilityError
- Layout viewport position and dimensions. LayoutViewport
- Navigates current page to the given URL. navigate
- Navigates current page to the given URL. navigate
- Navigates current page to the given history entry. navigateToHistoryEntry
- Navigates current page to the given history entry. navigateToHistoryEntry
- Navigation history entry. NavigationEntry
- Print page as PDF. printToPDF
- Print page as PDF. printToPDF
- 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
. produceCompilationCache - 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
. produceCompilationCache - Reloads given page optionally ignoring the cache. reload
- Reloads given page optionally ignoring the cache. reload
- Removes given script from the list. removeScriptToEvaluateOnNewDocument
- Removes given script from the list. removeScriptToEvaluateOnNewDocument
- Resets navigation history for the current page. resetNavigationHistory
- Resets navigation history for the current page. resetNavigationHistory
- Acknowledges that a screencast frame has been received by the frontend. screencastFrameAck
- Acknowledges that a screencast frame has been received by the frontend. screencastFrameAck
- Screencast frame metadata. ScreencastFrameMetadata
- Font families collection for a script. ScriptFontFamilies
- Unique script identifier. ScriptIdentifier
- Searches for given string in resource content. searchInResource
- Searches for given string in resource content. searchInResource
- Enable Chrome’s experimental ad filter on all sites. setAdBlockingEnabled
- Enable Chrome’s experimental ad filter on all sites. setAdBlockingEnabled
- Enable page Content Security Policy by-passing. setBypassCSP
- Enable page Content Security Policy by-passing. setBypassCSP
- Sets given markup as the document’s HTML. setDocumentContent
- Sets given markup as the document’s HTML. setDocumentContent
- Set generic font families. setFontFamilies
- Set generic font families. setFontFamilies
- Set default font sizes. setFontSizes
- Set default font sizes. setFontSizes
- 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. setInterceptFileChooserDialog - 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. setInterceptFileChooserDialog - Controls whether page will emit lifecycle events. setLifecycleEventsEnabled
- Controls whether page will emit lifecycle events. setLifecycleEventsEnabled
- Enable/disable prerendering manually.
- Enable/disable prerendering manually.
- Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation setRPHRegistrationMode
- Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation setRPHRegistrationMode
- Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode setSPCTransactionMode
- Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode setSPCTransactionMode
- 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/ setWebLifecycleState
- 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/ setWebLifecycleState
- Starts sending each frame using the
screencastFrame
event. startScreencast - Starts sending each frame using the
screencastFrame
event. startScreencast - Force the page stop all navigations and pending resource fetches. stopLoading
- Force the page stop all navigations and pending resource fetches. stopLoading
- Stops sending each frame in the
screencastFrame
. stopScreencast - Stops sending each frame in the
screencastFrame
. stopScreencast - Viewport for capturing screenshot. Viewport
- Visual viewport position, dimensions, and scale. VisualViewport
- Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger. waitForDebugger
- Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger. waitForDebugger
Enums§
- Indicates whether a frame has been identified as an ad.
- Enum of possible auto-response for permission / prompt dialogs.
- List of not restored reasons for back-forward cache.
- Types of not restored reasons for back-forward cache.
- Image compression format (defaults to png).
- Format (defaults to mhtml).
- Indicates whether the frame is cross-origin isolated and why it is the case.
- Javascript dialog type.
- Input mode.
- Navigation type
- 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 third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
- return as stream
- The referring-policy used for the navigation.
- Indicates whether the frame is a secure context and why it is the case.
- Target lifecycle state
- Image compression format.
- Transition type.