Saves the screenshot to a file, overwriting the file if it already exists.
public static OpenQA.Selenium.IWebDriver GetScreenshot(this OpenQA.Selenium.IWebDriver driver, string fileName);
driver OpenQA.Selenium.IWebDriver
This OpenQA.Selenium.IWebDriver instance.
fileName System.String
The full path and file name to save the screenshot to.
OpenQA.Selenium.IWebDriver
A self-reference to this OpenQA.Selenium.IWebDriver.