Created
January 11, 2019 11:13
-
-
Save seleniumgists/ac6e46e7231261160c944faac8af5117 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains 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
public static void Screenshot (WebDriver driver){ | |
File scr=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); | |
File dest= new File("C:\\Users\\Pictures\\test.png"); | |
FileUtils.copyFile(scr, dest); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment