小编Ale*_*lex的帖子

如何使用appium将屏幕截图与参考图像进行比较

我能够使用下面的代码成功地截取我的应用程序JainLibrary的页面之一.我正在使用junit和appium.

public String Screenshotpath = "Mention the folder Location";
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File(Screenshotpath+"Any name".jpg"));
Run Code Online (Sandbox Code Playgroud)

现在我想将屏幕截图与参考图像进行比较,以便我可以继续使用测试用例.

selenium automation android appium

5
推荐指数
1
解决办法
1061
查看次数

标签 统计

android ×1

appium ×1

automation ×1

selenium ×1