TypeError: casper.start is not a function

533 views
Skip to first unread message

Sam Ako

unread,
Jan 9, 2017, 5:16:33 AM1/9/17
to 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

unread,
Jan 13, 2017, 9:58:02 AM1/13/17
to CasperJS
var casper = require('casper').create();

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

casper
.run();

;-)

Sam Ako

unread,
Jan 14, 2017, 2:52:40 AM1/14/17
to CasperJS
Sorry, forgot to add that bit of code, but I do require the module and invoke start on it.
Reply all
Reply to author
Forward
0 new messages