-
public final class BrowserDomainThe Browser domain defines methods and events for browser managing.
-
-
Method Summary
Modifier and Type Method Description final UnitsetPermission(SetPermissionRequest input)Set permission settings for given origin. final UnitgrantPermissions(GrantPermissionsRequest input)Grant specific permissions to the given origin and reject all others. final UnitresetPermissions(ResetPermissionsRequest input)Reset all permission management for all origins. final UnitsetDownloadBehavior(SetDownloadBehaviorRequest input)Set the behavior when downloading a file. final Unitclose()Close browser gracefully. final Unitcrash()Crashes browser on the main thread. final UnitcrashGpuProcess()Crashes GPU process. final GetVersionResponsegetVersion()Returns version information. final GetBrowserCommandLineResponsegetBrowserCommandLine()Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline. final GetHistogramsResponsegetHistograms(GetHistogramsRequest input)Get Chrome histograms. final GetHistogramResponsegetHistogram(GetHistogramRequest input)Get a Chrome histogram by name. final GetWindowBoundsResponsegetWindowBounds(GetWindowBoundsRequest input)Get position and size of the browser window. final GetWindowForTargetResponsegetWindowForTarget(GetWindowForTargetRequest input)Get the browser window that contains the devtools target. final UnitsetWindowBounds(SetWindowBoundsRequest input)Set position and/or size of the browser window. final UnitsetDockTile(SetDockTileRequest input)Set dock tile details, platform-specific. final UnitexecuteBrowserCommand(ExecuteBrowserCommandRequest input)Invoke custom browser commands used by telemetry. -
-
Method Detail
-
setPermission
final Unit setPermission(SetPermissionRequest input)
Set permission settings for given origin.
-
grantPermissions
final Unit grantPermissions(GrantPermissionsRequest input)
Grant specific permissions to the given origin and reject all others.
-
resetPermissions
final Unit resetPermissions(ResetPermissionsRequest input)
Reset all permission management for all origins.
-
setDownloadBehavior
final Unit setDownloadBehavior(SetDownloadBehaviorRequest input)
Set the behavior when downloading a file.
-
crashGpuProcess
final Unit crashGpuProcess()
Crashes GPU process.
-
getVersion
final GetVersionResponse getVersion()
Returns version information.
-
getBrowserCommandLine
final GetBrowserCommandLineResponse getBrowserCommandLine()
Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.
-
getHistograms
final GetHistogramsResponse getHistograms(GetHistogramsRequest input)
Get Chrome histograms.
-
getHistogram
final GetHistogramResponse getHistogram(GetHistogramRequest input)
Get a Chrome histogram by name.
-
getWindowBounds
final GetWindowBoundsResponse getWindowBounds(GetWindowBoundsRequest input)
Get position and size of the browser window.
-
getWindowForTarget
final GetWindowForTargetResponse getWindowForTarget(GetWindowForTargetRequest input)
Get the browser window that contains the devtools target.
-
setWindowBounds
final Unit setWindowBounds(SetWindowBoundsRequest input)
Set position and/or size of the browser window.
-
setDockTile
final Unit setDockTile(SetDockTileRequest input)
Set dock tile details, platform-specific.
-
executeBrowserCommand
final Unit executeBrowserCommand(ExecuteBrowserCommandRequest input)
Invoke custom browser commands used by telemetry.
-
-
-
-