puppeteer-ide-extension icon indicating copy to clipboard operation
puppeteer-ide-extension copied to clipboard

Save screenshots

Open wpigoury opened this issue 1 year ago • 3 comments

Hello,

I'm trying to save screenshots of DOM elements with this extension but can't figure out where they are stored, I'm not even sure they are stored actually.

Here is the code: await page.goto("https://stackoverflow.com/questions/50715164"); const userInfo = await page.$(".user-info"); await userInfo.screenshot({ path: "userInfo.png" });

I tried changing the path to set absolute or relative paths but with no success.

Would you have any idea where the screenshots could be downloaded or if I can change the path? Or if taking screenshots is even possible with the extension?

Thanks.

wpigoury avatar Apr 13 '23 16:04 wpigoury