How to get a full page Screenshot?

How to get a full page Screenshot ?

Hi Tom-Dale,

This just emulates what JavaScript can usually see from inside the browser, here’s the script to achieve this.

var page = require('webpage').create();
page.open('http://github.com/', function () {
    page.render('github.png');
    phantom.exit();
});