var page = new WebPage(); page.open('http://google.com', function (status) { page.render('google.png'); phantom.exit(); });