Browser.setWindowBoundsSet position and/or size of the browser window.
| Name | Type | Description |
|---|---|---|
windowId | WindowID | Browser window id. |
bounds | Bounds | New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. |
{
"id": 1,
"method": "Browser.setWindowBounds",
"params": {
"windowId": "windowId-value",
"bounds": "bounds-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Browser.setWindowBounds', {"windowId": "windowId-value", "bounds": "bounds-value"});
console.log(result);