admin管理员组文章数量:1567522
这个问题呢是由于驱动启动文档缺少参数造成的
步骤:
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
版权声明:本文标题:APPIUM报错:Locator Strategy ‘name‘ is not supported for this session 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1725700977a1037467.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论