Taking screenshots with Selenium WebDriver and NUnit.

Here is a method I wrote to take a screenshot of the current page when using Selenium WebDriver and NUnit.

I have a dedicated screenshot folder in my build_output folder I save the images to and name the file according to test class name and test name. You can change both to fit your needs.

1 comment

Leave a Reply to Patrick Cancel reply