File screenshotAs = ((RemoteWebDriver) w).getScreenshotAs(OutputType.FILE);
Files.copy(screenshotAs,new File("C:\\Users\\cool\\Desktop\\photo\\a.png"));
selenium截图
最新推荐文章于 2024-05-22 17:31:34 发布
File screenshotAs = ((RemoteWebDriver) w).getScreenshotAs(OutputType.FILE);
Files.copy(screenshotAs,new File("C:\\Users\\cool\\Desktop\\photo\\a.png"));