DEV Community


Discussion on: 📷 How to take a screenshot of a webpage with JavaScript in Node.js (using puppeteer)

frases profile image
frases • Edited

As a follow-up to my post, I did two things which ended up improving my situation and giving me more consistent results:
1) I also tried using an older technology, the Chrome headless browser. Info on that here:

2) Instead of using a full page screenshot, I grabbed the image element from the DOM. Info on how to do that here:

EDIT: Actually, only the Chrome headless ended up eliminating the number of incorrect image renderings to only one or two a day (my program runs once every minute).