How to get a full-page screenshot?

How to get a full-page screenshot?

Hi Rhian,

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();
});