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
|
|
|
|
```javascript
|
|
var page = require('webpage').create();
|
|
|
|
page.viewportSize = {width: 1280, height: 720};
|
|
|
|
page.open('http://phantomjs.org', function() {
|
|
page.render('phantomjs.png');
|
|
console.log('created phantomjs.png. ☮ out!');
|
|
phantom.exit();
|
|
});
|
|
```
|