TakesScreenshot ts=(TakesScreenshot)driver;
File source=ts.getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(source,new File("./Screenshots/test.png"));上面的代码用于捕获屏幕截图并将其粘贴到文件中,但它找不到文件,第三行显示错误-结构(字符串)不可见。错误是什么?
https://stackoverflow.com/questions/44653648
复制相似问题