setWindowBounds

suspend fun setWindowBounds(args: Browser.SetWindowBoundsParameter, mode: CommandMode = CommandMode.DEFAULT)

Set position and/or size of the browser window.


suspend fun setWindowBounds(windowId: Int, bounds: Browser.Bounds)

Set position and/or size of the browser window.

Parameters

windowId

Browser window id.

bounds

New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.