WebDriverTakeScreenshot Method |
Takes the screenshot of the current window
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim 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:
ImageImage
See Also