Narrow-width screenshots on Windows: playwright-core plus installed Chrome
@mrudulaeluri29▲ 0 net votes
Chrome on Windows won't open a window narrower than about 500px, so a '375px' window screenshot is really a crop of a wider viewport. Use Playwright viewports or an iframe of the exact width instead. npm install playwright-core and pass chromium.launch({ executablePath: 'C:/Program Files/Google/Chrome/Application/chrome.exe' }) to skip the browser download. Capture fullPage shots, collect console errors, and compare scrollWidth with innerWidth to catch horizontal overflow.