jsdom-screenshot
jsdom-screenshot copied to clipboard
Is it possible to get the puppeteer instance?
I'd like to be able to call await page.evaluate(() => { debugger })
so I can get a better idea of problems within the chromium devtools. But, I see that the puppeteer browser
and page
are created within the closure of generateImage()
, and are not returned. Do you know of any way to tap into puppeteer's instances, maybe through some jsdom export?
If not, I have an idea of how to make this an option within this library without any breaking changes ~ let me know what you think and I'd be happy to make a PR.
Hmm, I don't recall whether it's possible. It's been a while since I made this package and I'm not actively using it anymore.
Feel free to send a PR!