- 📚 相关推荐文章
- SpringCloud Alibaba 整合 Dubbo 、Nacos 及No provider available from registry报错解决方案 推荐
- Spring CloudBoot启动报错Consider defining a bean of type ServerCodecConfigurer 推荐
- spring框架报错:java.lang.NoClassDefFoundError: orgspringframeworkaopTargetSource 推荐
- Spring框架中@Resource注解报错解决方案 推荐
- Spring框架(SpringBoot)中redis报错(Could not get a resource from the pool、java.net.SocketTimeoutException) 推荐

APPIUM报错:Locator Strategy ‘name‘ is not supported for this session
这个问题呢是由于驱动启动文档缺少参数造成的
步骤:
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学习时的测试用例,喜欢的朋友们可以去下载。
最后,觉得文章有用的小伙伴点个赞再走呗。
👁️ 阅读量:0
© 版权声明:本文《APPIUM报错:Locator Strategy ‘name‘ is not supported for this session》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686592415a301094.html。