WebDriverTakeScreenshot Method
Takes the screenshot of the current window

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As WebDriver
Dim delay As Integer
Dim returnValue As Image

returnValue = instance.TakeScreenshot(delay)

Parameters

delay (Optional)
Type: SystemInt32
Time to wait before taking the screenshot in milliseconds

Return Value

Type: Image
Image
See Also