Answer the question
In order to leave comments, you need to log in
Is it possible to catch errors in requested resources in nightwatch.js?
In casper.js, it was implemented like this:
casper.on('resource.received', function(resource) {
if (resource.status == 500) {
casper.fail('Resource ' + resource.url + ' failed to load (' + resource.status + ')');
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question