admin管理员组

文章数量:1530076

这个问题呢是由于驱动启动文档缺少参数造成的

 

步骤:

1、打开本地文件 driver.js (路径:appium-desktop安装路径\resources\app\node_modules\appium\node_modules\appium-android-driver\build\lib\driver.js)

this.locatorStrategies = ['xpath', 'id', 'class name', 'accessibility id', '-android uiautomator'];

在末尾添加一个参数name

this.locatorStrategies = ['xpath', 'id', 'class name', 'accessibility id', '-android uiautomator','name'];

 

2、然后保存,重启APPIUM,重启终端,重启仿真(如果是安卓仿真的话)。本人试过其中一个不重启,保存后依然报同样错误

 

我的下载那里附上了APPIUM学习时的测试用例,喜欢的朋友们可以去下载。

最后,觉得文章有用的小伙伴点个赞再走呗。

本文标签: 报错LocatorAppiumsessionsupported