I tried to create a web screenshot with PhantomJS, but I get the image as a mobile browser. I am using MAC OS Yosemite. Here is my javascript:
screen.js
var WebPage = require('webpage'); page = WebPage.create(); page.open('http://www.apple.com'); page.onLoadFinished = function() { window.setTimeout(function () { page.render('appleScreenShot' + '.png'); phantom.exit(); }, 2000); }
And here is my command line code
phantomjs --ignore-ssl-errors=true --web-security=false --ssl-protocol=tlsv1 --debug=true screen.js
source share