I need a way to take screenshots of my functional tests. Right now I\'m using Selenium 2 with C# bindings. I pretty much want to take a screenshot at the end of the test to
Just use the extension method TakeScreenshot() in one line of code.
IWebDriver driver = new InternetExplorerDriver(); driver.Navigate().GoToUrl("Your_Homepage_Url"); driver.TakeScreenshot().SaveAsFile("file_name_string", ImageFormat.Jpeg);