class BrowserOperations
(source)
The Browser domain defines methods and events for browser managing.
Link
Protocol Browser domain documentation.
fun close(): Single<ResponseFrame>
Close browser gracefully. |
|
fun crash(): Single<ResponseFrame>
Crashes browser on the main thread. |
|
fun crashGpuProcess(): Single<ResponseFrame>
Crashes GPU process. |
|
fun events(): Flowable<Event>
Returns flowable capturing all Browser domains events. |
|
fun getBrowserCommandLine(): Single<GetBrowserCommandLineResponse>
Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline. |
|
fun getHistogram(input: GetHistogramRequest): Single<GetHistogramResponse>
Get a Chrome histogram by name. |
|
fun getHistograms(input: GetHistogramsRequest): Single<GetHistogramsResponse>
Get Chrome histograms. |
|
fun getVersion(): Single<GetVersionResponse>
Returns version information. |
|
fun getWindowBounds(input: GetWindowBoundsRequest): Single<GetWindowBoundsResponse>
Get position and size of the browser window. |
|
fun getWindowForTarget(input: GetWindowForTargetRequest): Single<GetWindowForTargetResponse>
Get the browser window that contains the devtools target. |
|
fun grantPermissions(input: GrantPermissionsRequest): Single<ResponseFrame>
Grant specific permissions to the given origin and reject all others. |
|
fun resetPermissions(input: ResetPermissionsRequest): Single<ResponseFrame>
Reset all permission management for all origins. |
|
fun setDockTile(input: SetDockTileRequest): Single<ResponseFrame>
Set dock tile details, platform-specific. |
|
fun setPermission(input: SetPermissionRequest): Single<ResponseFrame>
Set permission settings for given origin. |
|
fun setWindowBounds(input: SetWindowBoundsRequest): Single<ResponseFrame>
Set position and/or size of the browser window. |