casperjs打开百度并截图
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了casperjs打开百度并截图相关的知识,希望对你有一定的参考价值。
var casper = require(‘casper‘).create(); casper.start(); casper.thenOpen(‘http://www.baidu.com/‘,function(){ casper.captureSelector(‘baidu.png‘,‘html‘); }); casper.run();
本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1900451
以上是关于casperjs打开百度并截图的主要内容,如果未能解决你的问题,请参考以下文章
windows10 phantomjs CasperJS安装和使用
While 循环设置 CasperJS “then()” 步骤