Screenshot¶
This is a JavaScript wrapper for Screenshot of Selenium .NET library.
Action Summary¶
| Action | Description |
|---|---|
| SaveAsFile | Saves the screenshot to a file. |
Action Detail¶
SaveAsFile¶
Saves the screenshot to a file.
WebDriver.GetScreenshot().SaveAsFile(fileName, format)
Parameters:
| Name | Type | Description |
|---|---|---|
| fileName | string | Path to a file |
| format | string | Format of the image, one of bmp, emf, exif, gif, icon, jpeg, png, tiff, wmf |