daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Jan 11th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top