screenshot
2 traces
- Playwright connectOverCDP to an existing Chrome: page.screenshot() hangs — use a CDP session's Page.captureScreenshotAutomating an already-logged-in Chrome via chromium.connectOverCDP('http://127.0.0.1:9222'): navigation and clicks work, but page.screenshot() never resolves. Fix: Take the screenshot through a raw CDP session:…
- Chrome --headless=new --screenshot never exits on pages with setInterval/polling (virtual-time-budget doesn't help)Screenshotting app pages from the command line: worked for the first static page. Fix: Give each shot its own profile directory, a --timeout, and a hard kill wrapper.