您的位置:首页 > 编程语言 > ASP

casperjs中start方法的使用方法总结

2015-10-16 22:07 471 查看
Signature: start(String url[, Function then])Configures and starts Casper, then opens the provided url and optionally adds the step provided by the then argument:casper.start('http://google.fr/', function() {this.echo("I'm loaded.");});casper.run();也可以:casper.start('http://google.fr/');casper.then(function() {this.echo("I'm loaded.");});casper.run();另外还可以:casper.start('http://google.fr/');casper.then(function() {casper.echo("I'm loaded.");});casper.run();You must call the start() method in order to be able to add navigation steps and run the suite. If you don’tyou’ll get an error message inviting you to do so anyway.

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: