TypeError: casper.start is not a function

已查看 533 次
跳至第一个未读帖子

Sam Ako

未读,
2017年1月9日 05:16:332017/1/9
收件人 CasperJS

I just installed "casper": "^0.1.1" and followed the basic example, but the following line:

casper.start('https://mlabs-fire-html-reports.herokuapp.com/demo/?template=ios')

throws the error: TypeError: casper.start is not a function

I'm I missing something? Saw another issue about this but it was closed without any resolution.
Thanks

philippe....@oscaro.com

未读,
2017年1月13日 09:58:022017/1/13
收件人 CasperJS
var casper = require('casper').create();

casper
.start('https://mlabs-fire-html-reports.herokuapp.com/demo/?template=ios');

casper
.run();

;-)

Sam Ako

未读,
2017年1月14日 02:52:402017/1/14
收件人 CasperJS
Sorry, forgot to add that bit of code, but I do require the module and invoke start on it.
回复全部
回复作者
转发
0 个新帖子