Created
January 11, 2019 10:17
-
-
Save seleniumgists/f36c2674930f4f7822cd38c95ad9e74a 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 void Screenshot (){ | |
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