In any way I can not find a question concerning change of the sanction of the screen.
There will always be 1024x768
.
Changing the viewportSize does not change the screen resolution, by itself.
I checked the resolution here: link
This is for node:
var WebPage = require('webpage');
page = WebPage.create()
page.onInitialized = function () {
page.evaluate(function () {
window.screen = {width: 1600, height: 900, availWidth: 1600, availHeight: 900};
});
};
page.open('http://browserspy.dk/screen.php');
page.onLoadFinished = function () {
page.render('ScreenShot' + '.png');
phantom.exit();
}
Can anyone remake for the python?