Files
puppeteer/docs/api/puppeteer.browser.setwindowbounds.md
2025-12-11 13:56:41 +00:00

667 B

sidebar_label
sidebar_label
Browser.setWindowBounds

Browser.setWindowBounds() method

Sets the specified window bounds.

Signature

class Browser {
  abstract setWindowBounds(
    windowId: WindowId,
    windowBounds: WindowBounds,
  ): Promise<void>;
}

Parameters

Parameter

Type

Description

windowId

WindowId

windowBounds

WindowBounds

Returns:

Promise<void>