I'm using Selenium from python, using web driver with the Chrome backend.
I would like to check at the end of each test test there were no javascript exceptions thrown during the test -- basically the equivalent of opening the JS console and looking for red text. Is there an easy way to do this from selenium? I'm not looking to catch exceptions from any particular javascript call, I'm looking for exceptions thrown by stuff happening in the background which might not usually cause a failure of the test itself.