selenese-runner-java
selenese-runner-java copied to clipboard
Monitor JavaScript errors
Hi,
Would it be possible to monitor if any JavaScript errors are generated while running a test? I was thinking of Selenese Runner having some sort of listener like the JS window.onerror
that would pick up JavaScript errors and log them.
Cheers
Forgot to mention, found these two pages that might be relevant for this: http://selenium.polteq.com/en/capturing-javascript-errors-with-selenium-webdriver/ http://watirmelon.com/2012/12/19/using-webdriver-to-automatically-check-for-javascript-errors-on-every-page/