1

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?

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.