Saves the screenshot to a file, overwriting the file if it already exists.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public void SaveAsFile( string fileName, ImageFormat format )
Parameters
- fileName
- Type:
System String
The full path and file name to save the screenshot to.
- format
- Type:
System.Drawing.Imaging ImageFormat
AImageFormat object indicating the format to save the image to.
See Also