DEV Community

loading...

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

Collapse
karataev profile image
Eugene Karataev

Puppeteer indeed is a very powerful tool to work with webpages. Looking forward for more posts exploring puppeteer features.
Just a reminder, that it's possible to use devtools for simple webpage screenshots.

  • Run command

one

  • Capture full size screenshot

two

Collapse
benjaminmock profile image
Benjamin Mock Author

That's true. If you want to do it manually, that's a very good tip. In my case I had to prepare a couple of hundred screenshots, so I needed a tool to automate this task. And with puppeteer it was surprisingly simple.

Collapse
karataev profile image
Eugene Karataev

Sure, puppeteer is great to automate routine tasks. I used it for web crawling and pdf generation and had a smooth experience.