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打开百度并截图的主要内容,如果未能解决你的问题,请参考以下文章

CasperJS 绑定问题

使用 casperJS 登录网站

windows10 phantomjs CasperJS安装和使用

While 循环设置 CasperJS “then()” 步骤

通过 Charles 代理 casperjs / phantomjs

如何在Casperjs中输入id输入的表格?