Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.52 KB

File metadata and controls

19 lines (17 loc) · 1.52 KB

WebDriverExtensions.GetScreenshot(OpenQA.Selenium.IWebDriver, string) Method

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);

Parameters

driver OpenQA.Selenium.IWebDriver
This OpenQA.Selenium.IWebDriver instance.

fileName System.String
The full path and file name to save the screenshot to.

Returns

OpenQA.Selenium.IWebDriver
A self-reference to this OpenQA.Selenium.IWebDriver.