A handy extension to Selenium web tests which helps generate and organise screenshots of your automated web tests. Built to aid the documentation of the Tax, SORN and Vehicle Enquiry Service for DVLA. Uses the test method name and namespace to automatically create a folder structure to organise your screenshots - great for quickly and automatically documenting your service.
Requires FireFox browser to be installed. We use Firefox v47 as this allows Selenium to take full page screenshots like this.
- Add a reference to the
ScreenshotHelper
project to your test project - Ensure your test class inherits the
ScreenshotManager
class - Run your test
- Call the
TakeScreenshot();
method
Screenshots will be then be saved in the root directory as specified in the app.config
file, using the test namespace and method name to create a folder structure.
Checkout the Sample.Tests project for examples and more info