nathanboktae/mocha-casperjs

Catch HTTP status code

Closed this issue · 2 comments

Hey,

In CasperJS it is possible to add handlers for http status codes. But I'm not sure how to do this when using mocha-casperjs, because you are not creating a new casper object.

Regards,

Malcolm Kindermans

Can you not add your handlers to casper.options.httpStatusHandlers before any test runs?

Reopen if setting casper.options.httpStatusHandlers doesn't work for you.