laggingreflex
laggingreflex

Reputation: 34667

Start Puppeteer headless but then show window afterwards?

Is it possible to start Puppeteer headless but then, when an error occurs, show its window?

Upvotes: 1

Views: 712

Answers (1)

Raul Rueda
Raul Rueda

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

Related Questions