


To try out this setup just clone this repo and run "npm install", nothing else is required for the setup. You will see a warning about fsPromise being experimental in the advanced script (one of the dependencies), but you can safely ignore this. This was tested with node 10.15.0 on Windows 10, but any of the later node 10s on any platform should work. I build the TypeScript out there to run it, and while it is formatted a little strangely it's very readable and will be easy to take code from. If you're here and you're not interested in TypeScript, but you would like to see the code in JavaScript, take a look in the javascriptVersions folder. I've made two files (one super minimal and one with a couple more features in place) to demonstrate Puppeteer and to give you some example code and ideas to start with. The quickstart guide in Puppeteer's readme is actually fantastic so give it a read if you're just starting out, and then you can use this repo to dive a little further into the module, as well as having a starting point TypeScript template. I set up a quick project with Puppeteer and TypeScript to test it, and thought I'd publish it to help anyone else who might hit the same troubles I did making a basic template. Thankfully there exists a module called Puppeteer: which is exactly what I wanted - a super simple node library for Chrome testing. I recently came across a perfect opportunity for automated browser testing at work and thought it would be fun to finally try headless Chrome.
