4

I am writing automated test for a specific application, I'd need to check for Javascript errors in Chrome if possible with Selenium. Is there any already in-built class for this or any other handy way of doing this?

threesixnine
  • 1,733
  • 7
  • 30
  • 56
  • 1
    A nice solution has been given here: http://stackoverflow.com/questions/4189312/capturing-javascript-error-in-selenium – ptrk Mar 31 '16 at 14:19
  • @ptrk I'd have to inject a script to the page in this case, I'd rather be checking for js errors without any dependency on the page itself if possible. – threesixnine Mar 31 '16 at 14:40
  • Selenium is actually js injected into the page anyway, but I understand you don't want the original page modified. Then perhaps this link would be helpful: http://jimevansmusic.blogspot.com/2013/09/capturing-javascript-errors-in.html – ptrk Mar 31 '16 at 14:44

0 Answers0