Skip to content

Instantly share code, notes, and snippets.

@JohnRuddy
Created October 23, 2014 15:05
Show Gist options
  • Save JohnRuddy/d982cc13196434e6e2c5 to your computer and use it in GitHub Desktop.
Save JohnRuddy/d982cc13196434e6e2c5 to your computer and use it in GitHub Desktop.
Capture a screenshot with Selenium WebDriver
((ITakesScreenshot)_driver).GetScreenshot().SaveAsFile("Sscreenshot.jpg", ImageFormat.Jpeg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment