Module chrome_remote_interface_model::page[][src]

This is supported on crate features Page and Debugger and DOM and IO and Network and Runtime only.

Actions and events related to the inspected page belong to the page domain.

Structs

AddCompilationCacheCommandexperimental

Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.

AddCompilationCacheReturnexperimental

Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.

AddScriptToEvaluateOnLoadCommandDeprecatedexperimental

Deprecated, please use addScriptToEvaluateOnNewDocument instead.

AddScriptToEvaluateOnLoadReturnDeprecatedexperimental

Deprecated, please use addScriptToEvaluateOnNewDocument instead.

AddScriptToEvaluateOnNewDocumentCommand

Evaluates given script in every frame upon creation (before loading frame's scripts).

AddScriptToEvaluateOnNewDocumentReturn

Evaluates given script in every frame upon creation (before loading frame's scripts).

AppManifestError

Error while paring app manifest.

AppManifestErrorBuilder
AppManifestParsedPropertiesexperimental

Parsed app manifest properties.

BringToFrontCommand

Brings page to front (activates tab).

BringToFrontReturn

Brings page to front (activates tab).

CaptureScreenshotCommand

Capture page screenshot.

CaptureScreenshotCommandBuilder
CaptureScreenshotReturn

Capture page screenshot.

CaptureSnapshotCommandexperimental

Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.

CaptureSnapshotReturnexperimental

Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.

ClearCompilationCacheCommandexperimental

Clears seeded compilation cache.

ClearCompilationCacheReturnexperimental

Clears seeded compilation cache.

ClearDeviceMetricsOverrideCommandDeprecatedexperimental

Clears the overriden device metrics.

ClearDeviceMetricsOverrideReturnDeprecatedexperimental

Clears the overriden device metrics.

ClearDeviceOrientationOverrideCommandDeprecatedexperimental

Clears the overridden Device Orientation.

ClearDeviceOrientationOverrideReturnDeprecatedexperimental

Clears the overridden Device Orientation.

ClearGeolocationOverrideCommandDeprecated

Clears the overriden Geolocation Position and Error.

ClearGeolocationOverrideReturnDeprecated

Clears the overriden Geolocation Position and Error.

CloseCommandexperimental

Tries to close page, running its beforeunload hooks, if any.

CloseReturnexperimental

Tries to close page, running its beforeunload hooks, if any.

CompilationCacheProducedEventexperimental

Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.

CrashCommandexperimental

Crashes renderer on the IO thread, generates minidumps.

CrashReturnexperimental

Crashes renderer on the IO thread, generates minidumps.

CreateIsolatedWorldCommand

Creates an isolated world for the given frame.

CreateIsolatedWorldReturn

Creates an isolated world for the given frame.

DeleteCookieCommandDeprecatedexperimental

Deletes browser cookie with given name, domain and path.

DeleteCookieReturnDeprecatedexperimental

Deletes browser cookie with given name, domain and path.

DisableCommand

Disables page domain notifications.

DisableReturn

Disables page domain notifications.

DomContentEventFiredEvent
DownloadProgressEventexperimental

Fired when download makes progress. Last call has |done| == true.

DownloadProgressEventBuilderexperimental
DownloadWillBeginEventexperimental

Fired when page is about to start a download.

DownloadWillBeginEventBuilderexperimental
EnableCommand

Enables page domain notifications.

EnableReturn

Enables page domain notifications.

FileChooserOpenedEvent

Emitted only when page.interceptFileChooser is enabled.

FontFamiliesexperimental

Generic font families collection.

FontFamiliesBuilderexperimental
FontSizesexperimental

Default font sizes.

Frame

Information about the Frame on the page.

FrameAttachedEvent

Fired when frame has been attached to its parent.

FrameBuilder
FrameClearedScheduledNavigationEventDeprecated

Fired when frame no longer has a scheduled navigation.

FrameDetachedEvent

Fired when frame has been detached from its parent.

FrameId

Unique frame identifier.

FrameNavigatedEvent

Fired once navigation of the frame has completed. Frame is now associated with the new loader.

FrameRequestedNavigationEventexperimental

Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

FrameRequestedNavigationEventBuilderexperimental
FrameResizedEventexperimental
FrameResourceexperimental

Information about the Resource on the page.

FrameResourceBuilderexperimental
FrameResourceTreeexperimental

Information about the Frame hierarchy along with their cached resources.

FrameScheduledNavigationEventDeprecated

Fired when frame schedules a potential navigation.

FrameScheduledNavigationEventBuilderDeprecated
FrameStartedLoadingEventexperimental

Fired when frame has started loading.

FrameStoppedLoadingEventexperimental

Fired when frame has stopped loading.

FrameTree

Information about the Frame hierarchy.

GenerateTestReportCommandexperimental

Generates a report for testing.

GenerateTestReportReturnexperimental

Generates a report for testing.

GetAppManifestCommand
GetAppManifestReturn
GetAppManifestReturnBuilder
GetCookiesCommandDeprecatedexperimental

Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.

GetCookiesReturnDeprecatedexperimental

Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.

GetFrameTreeCommand

Returns present frame tree structure.

GetFrameTreeReturn

Returns present frame tree structure.

GetInstallabilityErrorsCommandexperimental
GetInstallabilityErrorsReturnexperimental
GetLayoutMetricsCommand

Returns metrics relating to the layouting of the page, such as viewport bounds/scale.

GetLayoutMetricsReturn

Returns metrics relating to the layouting of the page, such as viewport bounds/scale.

GetManifestIconsCommandexperimental
GetManifestIconsReturnexperimental
GetNavigationHistoryCommand

Returns navigation history for the current page.

GetNavigationHistoryReturn

Returns navigation history for the current page.

GetResourceContentCommandexperimental

Returns content of the given resource.

GetResourceContentReturnexperimental

Returns content of the given resource.

GetResourceTreeCommandexperimental

Returns present frame / resource tree structure.

GetResourceTreeReturnexperimental

Returns present frame / resource tree structure.

HandleJavaScriptDialogCommand

Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).

HandleJavaScriptDialogReturn

Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).

InstallabilityErrorexperimental

The installability error

InstallabilityErrorArgumentexperimental
InterstitialHiddenEvent

Fired when interstitial page was hidden

InterstitialShownEvent

Fired when interstitial page was shown

JavascriptDialogClosedEvent

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

JavascriptDialogOpeningEvent

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

JavascriptDialogOpeningEventBuilder
LayoutViewport

Layout viewport position and dimensions.

LayoutViewportBuilder
LifecycleEventEvent

Fired for top level page lifecycle events such as navigation, load, paint, etc.

LifecycleEventEventBuilder
LoadEventFiredEvent
NavigateCommand

Navigates current page to the given URL.

NavigateCommandBuilder
NavigateReturn

Navigates current page to the given URL.

NavigateToHistoryEntryCommand

Navigates current page to the given history entry.

NavigateToHistoryEntryReturn

Navigates current page to the given history entry.

NavigatedWithinDocumentEventexperimental

Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.

NavigationEntry

Navigation history entry.

NavigationEntryBuilder
PrintToPdfCommand

Print page as PDF.

PrintToPdfCommandBuilder
PrintToPdfReturn

Print page as PDF.

ReloadCommand

Reloads given page optionally ignoring the cache.

ReloadReturn

Reloads given page optionally ignoring the cache.

RemoveScriptToEvaluateOnLoadCommandDeprecatedexperimental

Deprecated, please use removeScriptToEvaluateOnNewDocument instead.

RemoveScriptToEvaluateOnLoadReturnDeprecatedexperimental

Deprecated, please use removeScriptToEvaluateOnNewDocument instead.

RemoveScriptToEvaluateOnNewDocumentCommand

Removes given script from the list.

RemoveScriptToEvaluateOnNewDocumentReturn

Removes given script from the list.

ResetNavigationHistoryCommand

Resets navigation history for the current page.

ResetNavigationHistoryReturn

Resets navigation history for the current page.

ScreencastFrameAckCommandexperimental

Acknowledges that a screencast frame has been received by the frontend.

ScreencastFrameAckReturnexperimental

Acknowledges that a screencast frame has been received by the frontend.

ScreencastFrameEventexperimental

Compressed image data requested by the startScreencast.

ScreencastFrameMetadataexperimental

Screencast frame metadata.

ScreencastFrameMetadataBuilderexperimental
ScreencastVisibilityChangedEventexperimental

Fired when the page with currently enabled screencast was shown or hidden `.

ScriptIdentifier

Unique script identifier.

SearchInResourceCommandexperimental

Searches for given string in resource content.

SearchInResourceCommandBuilderexperimental
SearchInResourceReturnexperimental

Searches for given string in resource content.

SetAdBlockingEnabledCommandexperimental

Enable Chrome's experimental ad filter on all sites.

SetAdBlockingEnabledReturnexperimental

Enable Chrome's experimental ad filter on all sites.

SetBypassCspCommandexperimental

Enable page Content Security Policy by-passing.

SetBypassCspReturnexperimental

Enable page Content Security Policy by-passing.

SetDeviceMetricsOverrideCommandDeprecatedexperimental

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).

SetDeviceMetricsOverrideCommandBuilderDeprecatedexperimental
SetDeviceMetricsOverrideReturnDeprecatedexperimental

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).

SetDeviceOrientationOverrideCommandDeprecatedexperimental

Overrides the Device Orientation.

SetDeviceOrientationOverrideReturnDeprecatedexperimental

Overrides the Device Orientation.

SetDocumentContentCommand

Sets given markup as the document's HTML.

SetDocumentContentReturn

Sets given markup as the document's HTML.

SetDownloadBehaviorCommandDeprecatedexperimental

Set the behavior when downloading a file.

SetDownloadBehaviorReturnDeprecatedexperimental

Set the behavior when downloading a file.

SetFontFamiliesCommandexperimental

Set generic font families.

SetFontFamiliesReturnexperimental

Set generic font families.

SetFontSizesCommandexperimental

Set default font sizes.

SetFontSizesReturnexperimental

Set default font sizes.

SetGeolocationOverrideCommandDeprecated

Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

SetGeolocationOverrideReturnDeprecated

Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

SetInterceptFileChooserDialogCommandexperimental

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.

SetInterceptFileChooserDialogReturnexperimental

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.

SetLifecycleEventsEnabledCommandexperimental

Controls whether page will emit lifecycle events.

SetLifecycleEventsEnabledReturnexperimental

Controls whether page will emit lifecycle events.

SetProduceCompilationCacheCommandexperimental

Forces compilation cache to be generated for every subresource script.

SetProduceCompilationCacheReturnexperimental

Forces compilation cache to be generated for every subresource script.

SetTouchEmulationEnabledCommandDeprecatedexperimental

Toggles mouse event-based touch event emulation.

SetTouchEmulationEnabledReturnDeprecatedexperimental

Toggles mouse event-based touch event emulation.

SetWebLifecycleStateCommandexperimental

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/

SetWebLifecycleStateReturnexperimental

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/

StartScreencastCommandexperimental

Starts sending each frame using the screencastFrame event.

StartScreencastCommandBuilderexperimental
StartScreencastReturnexperimental

Starts sending each frame using the screencastFrame event.

StopLoadingCommand

Force the page stop all navigations and pending resource fetches.

StopLoadingReturn

Force the page stop all navigations and pending resource fetches.

StopScreencastCommandexperimental

Stops sending each frame in the screencastFrame.

StopScreencastReturnexperimental

Stops sending each frame in the screencastFrame.

Viewport

Viewport for capturing screenshot.

ViewportBuilder
VisualViewport

Visual viewport position, dimensions, and scale.

VisualViewportBuilder
WaitForDebuggerCommandexperimental

Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

WaitForDebuggerReturnexperimental

Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

WindowOpenEvent

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

WindowOpenEventBuilder

Enums

AdFrameTypeexperimental
CaptureScreenshotCommandFormat
CaptureSnapshotCommandFormat
ClientNavigationDispositionexperimental
ClientNavigationReasonexperimental
CrossOriginIsolatedContextTypeexperimental
DialogType
DownloadProgressEventState
FileChooserOpenedEventMode
FrameDetachedEventReason
GatedApiFeaturesexperimental
PrintToPdfCommandTransferMode
ReferrerPolicyexperimental
SecureContextTypeexperimental
SetDownloadBehaviorCommandBehavior
SetTouchEmulationEnabledCommandConfiguration
SetWebLifecycleStateCommandState
StartScreencastCommandFormat
TransitionType