thomasdondorf / puppeteer-cluster

Puppeteer Pool, run a cluster of instances in parallel
MIT License
3.2k stars 307 forks source link

Screen shot getting stuck forever #518

Open Darshan-upadhyay1110 opened 1 year ago

Darshan-upadhyay1110 commented 1 year ago

When we have multiple windows open and if we want to take screen shot then some times if one of the chrome window is in background and some pope up gets open in that file then process get stuck forever.

await page.screenshot({ path: fileNameAbsolute, });

will get stuck if that window is not open in foreground.