Reputation: 34667
Is it possible to start Puppeteer headless but then, when an error occurs, show its window?
Upvotes: 1
Views: 712
Reputation: 750
No, headless and all the other configuration is set at the start.
I assume that you want to see what's going on the screen at some point; like an error. In this case you should take a screenshot:
await page.screenshot({ path: 'file_name.png' });
Upvotes: 2