Save the image to a file. Supported format: png, bmp, gif and jpg.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim instance As Image
Dim filePath As String
Dim autoDispose As Boolean
Dim returnValue As String
returnValue = instance.SaveAs(filePath,
autoDispose)
Parameters
- filePath
- Type: SystemString
File path. Ex: "C:\capture_{yyyyMMdd-HHmmss}.png" - autoDispose (Optional)
- Type: SystemBoolean
Release the image resources once done
Return Value
Type:
StringFull file path
See Also