1
bsbgong 2014-10-22 19:18:49 +08:00
|
2
13k OP ```
var url1 = 'http://ju.taobao.com/jusp/nvzhuangpindao/tp.htm?spm=608.7192301.764795.3.cr8ku7#floor2'; var url2 = 'http://inman.tmall.com/'; var casper = require('casper').create({ verbose: true, logLevel: 'warning', pageSettings: { loadImages: true, loadPlugins: false, userAgent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36' }}); casper.start(url1).viewport(1423, 7286).then(function(){ console.log(this.getTitle()); this.wait(60000); }); casper.then(function(){ this.capture('./ju.png'); }); casper.run(); ``` 这段代码能正常对URL1截图,但是url2就是大部分恐空白 @bsbgong 能帮忙看看么? |