You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phantomjs/data/code/phantom-webpage-screenshot.js

10 lines
244 B
JavaScript

10 years ago
var page = require('webpage').create();
page.viewportSize = {width: 1280, height: 720};
page.open('http://phantomjs.org', function() {
page.render('phantomjs.png');
10 years ago
console.log('created phantomjs.png. ☮ out!');
phantom.exit();
});