Created
August 6, 2019 05:34
-
-
Save gerhardqux/b145ce5d2f3c8a36347043328f55bedf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.clipRect = { | |
width: 1824, | |
height: 984 | |
}; | |
page.viewportSize = { | |
width: 1824, | |
height: 984 | |
}; | |
page.open('http://localhost', function(status) { | |
just_wait(); | |
}); | |
function just_wait() { | |
setTimeout(function() { | |
console.log(status); | |
page.render('localhost.png'); | |
console.log('Hello, world2!'); | |
phantom.exit(); | |
}, 5000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment