Catch HTTP status code
Closed this issue · 2 comments
MalcolmK commented
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
nathanboktae commented
Can you not add your handlers to casper.options.httpStatusHandlers
before any test runs?
nathanboktae commented
Reopen if setting casper.options.httpStatusHandlers
doesn't work for you.