ImageSaveAs Method
Save the image to a file. Supported format: png, bmp, gif and jpg.

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim 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: String
Full file path
See Also