i need test around 30 40 websites. checking if there client-side javascript errors, manually hit websites in browser , monitor in console see javascript errors.
is there way can automate testing process using nodejs? there way validate if page has javascript errors?
you can create file js has below , push websites.
window.onerror = function(message, url, number){ // send data node.js server via ajax $.post("http://yourdomain.com/errorhandler", {"msg": message, "url": url, "linenumber": number}, function(data){ // code removed brevity }); } you can @ thread more information: javascript global error handling
Comments
Post a Comment