selenese-runner-java icon indicating copy to clipboard operation
selenese-runner-java copied to clipboard

Monitor JavaScript errors

Open josepedrocorreia opened this issue 11 years ago • 1 comments

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

josepedrocorreia avatar Apr 19 '13 11:04 josepedrocorreia

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/

josepedrocorreia avatar Apr 19 '13 11:04 josepedrocorreia