When testing webpages, you may need to take a screenshot of that particular site programmatically. You can then use these screenshots to detect layout shifts, test different viewports, and more. In this brief tutorial, let's take a look at how we can achieve this using Puppeteer, Cloudinary) and Next.js.
-
Updated
Nov 15, 2021 - JavaScript