Back to Puppeteer

Browser.getWindowBounds() method

website/versioned_docs/version-24.40.0/api/puppeteer.browser.getwindowbounds.md

19.2.2522 B
Original Source

Browser.getWindowBounds() method

Gets the specified window bounds.

Signature

typescript
class Browser {
  abstract getWindowBounds(windowId: WindowId): Promise<WindowBounds>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

windowId

</td><td>

WindowId

</td><td> </td></tr> </tbody></table>

Returns:

Promise<WindowBounds>