jsdom-screenshot icon indicating copy to clipboard operation
jsdom-screenshot copied to clipboard

Is it possible to get the puppeteer instance?

Open good-idea opened this issue 3 years ago • 1 comments

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.

good-idea avatar Jan 20 '21 20:01 good-idea

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!

dferber90 avatar Jan 20 '21 22:01 dferber90