Appium Appium IOS 下如何截图保存呢?求高手指导

echo · February 28, 2015 · Last by kuroky replied at March 02, 2015 · 1269 hits

Appium IOS 下如何截图保存呢?求高手指导

共收到 3 条回复 时间 点赞

有截图方法, python 的 get_screenshot_as_png()

echo #2 · February 28, 2015 Author

self.driver.get_screenshot_as_file(TEMP_FILE) 用了这个,多谢

java 版:
File Screenshot= ((RemoteWebDriver) driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(Screenshot, new File(fileFullName));

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up