Puppeteer is a node package that allows you to control Chrome over an API. Most things that you can do in a browser you can do in Puppeteer. All you need to do to install puppeteer is just run “npm i puppeteer.”One note from the repo is that Puppeteer downloads the latest copy of Chromium, and that can be a large file. A word of warning when you install and deploy: I had some problems running this on server-less solutions.My goal with Puppeteer was to try to make a custom testing take some screenshots and do some performance metrics. For this example, let’s try to build a script that will take screenshots at a number of different sizes. For our app, let’s just take some screenshots of a page from some different viewpoints. (async () => { const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']}); const page = await browser.newPage(); // An array of viewport sizes for different devices. const viewports = [1366, 1280, 1024, 640, 414, 411, 375, 320]; await page.goto(myVar); for(let i=0; i