phantomjs example how to create a screenshot of indexdata.com
[mkws-moved-to-github.git] / test / spec-dev / screenshot.js
1 // run: phantomjs /path/to/this/file
2
3 var url = 'http://www.indexdata.com/';
4 var file_png = "indexdata.png";
5
6 var page = require('webpage').create();
7
8 page.open(url, function () {
9     page.render(file_png);
10     phantom.exit();
11 });
12