Created
October 16, 2013 07:15
-
-
Save zevnull/7003837 to your computer and use it in GitHub Desktop.
capture screens
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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