webDriver實現截圖:File srcFile = ((TakesScreenshot)driver). getScreenshotAs(OutputType.FILE); FileUtils.copyFile (srcFile,new File("d:\\screenshot.png"));運行junit4報錯:調試時顯示:getScreenshotAs(OutputType.FILE); 有問題
添加回答
舉報
0/150
提交
取消