class BrowserDomain
The Browser domain defines methods and events for browser managing.
close |
Close browser gracefully. suspend fun close(): Unit |
crash |
Crashes browser on the main thread. suspend fun crash(): Unit |
crashGpuProcess |
Crashes GPU process. suspend fun crashGpuProcess(): Unit |
executeBrowserCommand |
Invoke custom browser commands used by telemetry. suspend fun executeBrowserCommand(input: ExecuteBrowserCommandRequest): Unit |
getBrowserCommandLine |
Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline. suspend fun getBrowserCommandLine(): GetBrowserCommandLineResponse |
getHistogram |
Get a Chrome histogram by name. suspend fun getHistogram(input: GetHistogramRequest): GetHistogramResponse |
getHistograms |
Get Chrome histograms. suspend fun getHistograms(input: GetHistogramsRequest): GetHistogramsResponse |
getVersion |
Returns version information. suspend fun getVersion(): GetVersionResponse |
getWindowBounds |
Get position and size of the browser window. suspend fun getWindowBounds(input: GetWindowBoundsRequest): GetWindowBoundsResponse |
getWindowForTarget |
Get the browser window that contains the devtools target. suspend fun getWindowForTarget(input: GetWindowForTargetRequest): GetWindowForTargetResponse |
grantPermissions |
Grant specific permissions to the given origin and reject all others. suspend fun grantPermissions(input: GrantPermissionsRequest): Unit |
resetPermissions |
Reset all permission management for all origins. suspend fun resetPermissions(input: ResetPermissionsRequest): Unit |
setDockTile |
Set dock tile details, platform-specific. suspend fun setDockTile(input: SetDockTileRequest): Unit |
setDownloadBehavior |
Set the behavior when downloading a file. suspend fun setDownloadBehavior(input: SetDownloadBehaviorRequest): Unit |
setPermission |
Set permission settings for given origin. suspend fun setPermission(input: SetPermissionRequest): Unit |
setWindowBounds |
Set position and/or size of the browser window. suspend fun setWindowBounds(input: SetWindowBoundsRequest): Unit |