Skip to main content

Module browser

Module browser 

Source
Expand description

The Browser domain defines methods and events for browser managing.

Method names for the Browser domain, for use with CdpClient::call.

Constants§

ADD_MOCK_CAMERA
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.
ADD_PRIVACY_SANDBOX_ENROLLMENT_OVERRIDE
Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
CANCEL_DOWNLOAD
Cancel a download if in progress
CLOSE
Close browser gracefully.
CRASH
Crashes browser on the main thread.
CRASH_GPU_PROCESS
Crashes GPU process.
EXECUTE_BROWSER_COMMAND
Invoke custom browser commands used by telemetry.
GET_BROWSER_COMMAND_LINE
Returns the command line switches for the browser process if, and only if –enable-automation is on the commandline.
GET_GLOBAL_PRIVACY_CONTROL
Gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#get-global-privacy-control
GET_HISTOGRAM
Get a Chrome histogram by name.
GET_HISTOGRAMS
Get Chrome histograms.
GET_VERSION
Returns version information.
GET_WINDOW_BOUNDS
Get position and size of the browser window.
GET_WINDOW_FOR_TARGET
Get the browser window that contains the devtools target.
GRANT_PERMISSIONS
Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
RESET_PERMISSIONS
Reset all permission management for all origins.
SET_CONTENTS_SIZE
Set size of the browser contents resizing browser window as necessary.
SET_DOCK_TILE
Set dock tile details, platform-specific.
SET_DOWNLOAD_BEHAVIOR
Set the behavior when downloading a file.
SET_GLOBAL_PRIVACY_CONTROL
Sets and then gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#set-global-privacy-control
SET_PERMISSION
Set permission settings for given embedding and embedded origins.
SET_WINDOW_BOUNDS
Set position and/or size of the browser window.