Skip to content

Instantly share code, notes, and snippets.

@zevnull
Created October 16, 2013 07:15
Show Gist options
  • Save zevnull/7003837 to your computer and use it in GitHub Desktop.
Save zevnull/7003837 to your computer and use it in GitHub Desktop.
capture screens
// how to capture screens?
File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
String filename = "c:\\screenshot098765.png";
FileUtils.copyFile(screenshot, new File(filename));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment