pl.wendigo.chrome.api.browser / BrowserOperations

BrowserOperations

class BrowserOperations (source)

The Browser domain defines methods and events for browser managing.

Link
Protocol Browser domain documentation.

Functions

close

fun close(): Single<ResponseFrame>

Close browser gracefully.

crash

fun crash(): Single<ResponseFrame>

Crashes browser on the main thread.

crashGpuProcess

fun crashGpuProcess(): Single<ResponseFrame>

Crashes GPU process.

events

fun events(): Flowable<Event>

Returns flowable capturing all Browser domains events.

getBrowserCommandLine

fun getBrowserCommandLine(): Single<GetBrowserCommandLineResponse>

Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.

getHistogram

fun getHistogram(input: GetHistogramRequest): Single<GetHistogramResponse>

Get a Chrome histogram by name.

getHistograms

fun getHistograms(input: GetHistogramsRequest): Single<GetHistogramsResponse>

Get Chrome histograms.

getVersion

fun getVersion(): Single<GetVersionResponse>

Returns version information.

getWindowBounds

fun getWindowBounds(input: GetWindowBoundsRequest): Single<GetWindowBoundsResponse>

Get position and size of the browser window.

getWindowForTarget

fun getWindowForTarget(input: GetWindowForTargetRequest): Single<GetWindowForTargetResponse>

Get the browser window that contains the devtools target.

grantPermissions

fun grantPermissions(input: GrantPermissionsRequest): Single<ResponseFrame>

Grant specific permissions to the given origin and reject all others.

resetPermissions

fun resetPermissions(input: ResetPermissionsRequest): Single<ResponseFrame>

Reset all permission management for all origins.

setDockTile

fun setDockTile(input: SetDockTileRequest): Single<ResponseFrame>

Set dock tile details, platform-specific.

setPermission

fun setPermission(input: SetPermissionRequest): Single<ResponseFrame>

Set permission settings for given origin.

setWindowBounds

fun setWindowBounds(input: SetWindowBoundsRequest): Single<ResponseFrame>

Set position and/or size of the browser window.