Skip to content

Instantly share code, notes, and snippets.

@nilswindisch
Last active January 2, 2016 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilswindisch/8354165 to your computer and use it in GitHub Desktop.
Save nilswindisch/8354165 to your computer and use it in GitHub Desktop.
testet on Mac OS X 10.9.1 with node.js 0.10.22
console.log('Hello, world!');
phantom.exit();
* Download PhantomJS here http://phantomjs.org/download.html
* Unzip and move /phantomjs-X.x.X-macosx/bin/phantomjs to Macintosh HD/bin/
* test at least "Hello World!" and "Page Loading" in some random folder on your HDD
* make sure nodejs is installed
* install [pa11y](https://github.com/nature/pa11y) with 'sudo npm install -g pa11y'
* try some examples
** hello.js
** screenshot.js
** $ pa11y www.sub.uni-goettingen.de
** $ pa11y -r csv www.sub.uni-goettingen.de > report.csv
* be happy - go crazy
var page = require('webpage').create();
page.open('http://www.sub.uni-goettingen.de', function() {
page.render('subuni-goettingen.png');
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment