2.11 webdriver中使用 FileUtils ()

http://snkcxy.iteye.com/blog/1845862

ex:

比较网页截图图片与预期是否一致

File screenshot=((TakesScreenshot)driver ).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(screenshot,new File("...新图片存放路径"));
File fileInput= new File(" ...事先截图好的图片存放路径");
File fileOutput=new File("...新图片存放路径");
.........
..



原文地址:https://www.cnblogs.com/ericazy/p/6955625.html