Selenium 2 and JUnit4: How to capture screenshot on exception?

Viewed 8933

I want to capture a screenshot only upon unexpected exception.

1 Answers
Related