ISeleniumCaptureScreenshot Method WebDriver
Captures a PNG screenshot to the specified file.

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 3.1.0
Syntax

void CaptureScreenshot(
	string filename
)

Parameters

filename
Type: SystemString
the absolute path to the file to be written, e.g. "c:\blah\screenshot.png"
See Also

Reference