Skip to main content

Module browser

Module browser 

Source
Expand description

The Browser domain defines methods and events for browser managing.

Types, command parameters and event payloads for the Browser domain. The method-name constants for the same domain are in crate::methods.

Structs§

AddMockCameraParams
Adds or updates a mock camera in the shared video capture device list for test automation. The mock camera is not scoped to a particular page or frame and is removed when the DevTools session that created it disconnects.
AddPrivacySandboxEnrollmentOverrideParams
Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
Bounds
Browser window bounds information
Bucket
Chrome histogram bucket.
CancelDownloadParams
Cancel a download if in progress
CloseParams
Close browser gracefully.
CrashGpuProcessParams
Crashes GPU process.
CrashParams
Crashes browser on the main thread.
DownloadProgressEvent
Fired when download makes progress. Last call has |done| == true.
DownloadWillBeginEvent
Fired when page is about to start a download.
ExecuteBrowserCommandParams
Invoke custom browser commands used by telemetry.
GetBrowserCommandLineParams
Returns the command line switches for the browser process if, and only if –enable-automation is on the commandline.
GetBrowserCommandLineReturns
What Browser.getBrowserCommandLine answers with.
GetGlobalPrivacyControlParams
Gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#get-global-privacy-control
GetGlobalPrivacyControlReturns
What Browser.getGlobalPrivacyControl answers with.
GetHistogramParams
Get a Chrome histogram by name.
GetHistogramReturns
What Browser.getHistogram answers with.
GetHistogramsParams
Get Chrome histograms.
GetHistogramsReturns
What Browser.getHistograms answers with.
GetVersionParams
Returns version information.
GetVersionReturns
What Browser.getVersion answers with.
GetWindowBoundsParams
Get position and size of the browser window.
GetWindowBoundsReturns
What Browser.getWindowBounds answers with.
GetWindowForTargetParams
Get the browser window that contains the devtools target.
GetWindowForTargetReturns
What Browser.getWindowForTarget answers with.
GrantPermissionsParams
Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
Histogram
Chrome histogram.
PermissionDescriptor
Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dom-permissiondescriptor.
ResetPermissionsParams
Reset all permission management for all origins.
SetContentsSizeParams
Set size of the browser contents resizing browser window as necessary.
SetDockTileParams
Set dock tile details, platform-specific.
SetDownloadBehaviorParams
Set the behavior when downloading a file.
SetGlobalPrivacyControlParams
Sets and then gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#set-global-privacy-control
SetGlobalPrivacyControlReturns
What Browser.setGlobalPrivacyControl answers with.
SetPermissionParams
Set permission settings for given embedding and embedded origins.
SetWindowBoundsParams
Set position and/or size of the browser window.

Enums§

BrowserCommandId
Browser command ids used by executeBrowserCommand.
DownloadProgressState
The values state accepts on downloadProgress.
PermissionSetting
Experimental: may change without notice.
PermissionType
Experimental: may change without notice.
SetDownloadBehaviorBehavior
The values behavior accepts on setDownloadBehavior.
WindowState
The state of the browser window.

Type Aliases§

BrowserContextId
Experimental: may change without notice.
WindowId
Experimental: may change without notice.