The recommended version of casper right now is 1.1.0-DEV, but install.js installs the 1.0.3 version upon installation. This causes all sorts of problems for casper code that is written to work with Casper 1.1.0+. For instance, my code. :)
I have 1.1.0-DEV installed locally, and my tests run correctly when I run them from the command line with casperjs test ./test.js, but when I run the same test.js through grunt-casperjs, I get an error around require calls, which I believe is caused by lack of support in older versions of Casper.
I highly recommend updating install.js to install 1.1.0 instead of 1.0.3, or at least checking for an existing casperjs installation before installing an outdated version.
The recommended version of casper right now is 1.1.0-DEV, but install.js installs the 1.0.3 version upon installation. This causes all sorts of problems for casper code that is written to work with Casper 1.1.0+. For instance, my code. :)
I have 1.1.0-DEV installed locally, and my tests run correctly when I run them from the command line with
casperjs test ./test.js
, but when I run the same test.js through grunt-casperjs, I get an error aroundrequire
calls, which I believe is caused by lack of support in older versions of Casper.I highly recommend updating install.js to install 1.1.0 instead of 1.0.3, or at least checking for an existing casperjs installation before installing an outdated version.