问题
I am using PhantomJS to capture an image of a website built using Polymer. Here is my capture.js
file:
var page = require('webpage').create();
page.open('https://www.gosizzle.io/token/recruiting/957e73c45b55129b1a', function() {
page.render('test1.png');
phantom.exit();
});
However when I run
phantomjs capture.js
my test1.png
only contains the footer of the website:
来源:https://stackoverflow.com/questions/35610392/cant-get-website-image