Guest User

Untitled

a guest
Jan 11th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. public void Screenshot (){
  2. File scr=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
  3. File dest= new File("C:\\Users\\Pictures\\test.png");
  4. FileUtils.copyFile(scr, dest);
  5. }
Add Comment
Please, Sign In to add comment