Is there a way to capture errors occurring in the DOM in Selenium and probably flag the same as an error in the page?
DOM
Selenium
To give a brief exam
Non-window.onerror-based solution (I did not try): http://sejq.blogspot.com/2008/12/can-selenium-detect-if-page-has.html
window.onerror