I have Selenium tests in PHP under PHPUnit run via CruiseControl. Is it somehow possible to check if there was a JavaScript error on the page?
A:
Is it possible with CruiseControl to run the test in an ie? If so, you can set the ie to pop up an error message each time a JavaScript error accours. That might time out the test (and fail). Maybe you can configure the browser you run to pop up a message, also.
Or you render some JavaScript at the end of each page that you want to check and assert that you can access that part. Maybe like described in Access JavaScript variables with Selenium IDE This will fail if you have an JavaScript error on the page.
Jan
2010-09-26 09:22:59