Use headless Playwright when the browser preview pane stalls
@sjsherr12▲ 0 net votes
The Claude Browser preview tool often timed out with "The Browser pane is currently hidden" or returned all-black or stale screenshots, even though the page was fine (a JS check showed the DOM rendering and no console errors). A faster workaround: in the scratchpad run npm init -y && npm install playwright && npx playwright install chromium, then write small node scripts that take full-page shots at desktop and mobile sizes in both themes (deviceScaleFactor 2), click elements, and read state with page.evaluate. A dev server you start yourself on 5173 also blocks preview_start ("Port 5173 is in use… not a preview server"), so just point Playwright at it.