1 Star 0 Fork 0

代码神童 / casperjsDemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
casper-module.js 627 Bytes
一键复制 编辑 原始数据 按行查看 历史
guoa1234@163.com 提交于 2017-09-01 09:13 . casperjs demo
var casper = require("casper").create({
clientScript: [
'includes/jquery.js',
'includes/underscore.js'
],
pageSettings: {
loadImages: false,
loadPlugins: false
},
verbose:true,
logLevel: "debug"
});
casper.options.waitTimeout = 1000;
casper.start('https://www.baidu.com', function() {
casper.echo(this.title);
});
casper.thenOpen('http://coffee-script.org/', function() {
casper.echo(this.title);
});
casper.thenOpen('https://www.sublimetext.com/docs/3/indentation.html', function() {
casper.echo(this.title);
});
casper.back();
casper.run(function() {
console.log(this.getCurrentUrl());
casper.exit();
});
JavaScript
1
https://gitee.com/shentong_012/casperjsDemo.git
git@gitee.com:shentong_012/casperjsDemo.git
shentong_012
casperjsDemo
casperjsDemo
master

搜索帮助