slimerjs

Scriptable headless browser for automated web testing and screenshots

brewmacoslinux
Try with needOr install directly
Source

About

Scriptable browser for Web developers

Commands

slimerjs

Examples

Execute a JavaScript file for web automation$ slimerjs script.js
Capture a website screenshot and save as PNG$ slimerjs capture.js --output=screenshot.png
Run with verbose logging to debug scripts$ slimerjs script.js --debug=yes