javascript - Grunt CasperJS not passing querystring parameters on click -


i have casperjs test below:

casper.test.begin('testing querystrings', function suite(test) {      casper.start()          .thenopen('http://www.example.com', function () {             //         })          .then(function () {             this.click('.target a'); // links http://www.example.com/page.html?q=test         })          .then(function () {             this.echo(this.getcurrenturl()); // should output http://www.example.com/page.html?q=test         })          .run(function () {             test.done();         }); }); 

when run using command line:

casperjs test test.js 

then runs fine , getcurrenturl() shows url querystring

i want run tests grunt , have set using grunt-casperjs

when run the test via grunt test runs ok url output without query string.

i need query string included can run actual tests.

any ideas why happening or if there fix or work around?