Dean Hume - Capturing Web Page Screenshots with Selenium 2

added by deanomachino
1/10/2011 3:06:32 AM

0 Kicks, 88 Views

There have been many times when I have run a Unit Test that has failed and afterwards I wondered where it went wrong. The ability to see what occurred on the page or how it looked at the time would be a great benefit. I've been writing a few automated tests lately and looking for a way to implement this functionality. Luckily, Selenium 2 provides easy functionality that allows you to capture a screenshot of the page at the time that a unit test is being run - and it's really easy too.