Selenium C# Tutorial: Capturing screenshots with Selenium WebDriver
Selenium WebDriver provides the capability to capture screenshots during test execution. This ability is vital when you need to investigate different failures that occurred during the execution or, in some cases, to track the various stages of the run. The option to take a screenshot with selenium is extracted from the "ITakesScreenshot" interface that allows us to take a web page screenshot. We can also capture screenshots during verification of element state, values display