Skip to main content
Both fields take WIDTHxHEIGHT, width 320 to 16384, height 200 to 16384.

Sizes people actually use

Pick a size the session’s machine would plausibly have. A windowSize larger than the display is clamped.

Resizing after connecting

Set the size on create. page.setViewportSize (Playwright) and page.setViewport (Puppeteer) resize only the content area and leave outerWidth alone, a mismatch sites look for. Puppeteer applies an 800x600 viewport on connect unless you pass defaultViewport: null, so always pass it.