webDriver实现截图:
File srcFile = ((TakesScreenshot)driver). getScreenshotAs(OutputType.FILE); FileUtils.copyFile (srcFile,new File("d:\\screenshot.png"));
运行junit4报错:
调试时显示:
getScreenshotAs(OutputType.FILE); 有问题

胡子哥哥
慕森王
慕的地10843
芜湖不芜
随时随地看视频慕课网APP