CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS written in Javascript.
$ alias casperjs='docker run --rm -v `pwd`:/app vimagick/casperjs'
$ wget https://raw.githubusercontent.com/vimagick/dockerfiles/master/casperjs/sample.js
$ casperjs sample.js
CasperJS, a navigation scripting and testing utility for PhantomJS and SlimerJS
PhantomJS | PhantomJS