Scripting Browsers with Puppeteer

Now that I can launch a browser, wait for an element on the page to load, run some code in that headless browser, return some data and take a screenshot of that page's current state, I'm feeling pretty impressed with myself.

A giant Elephant is peeking above the bramble on a gorgeous day with the mountains behind him.  "I see you."
Photo by Wolfgang Hasselmann / Unsplash