
appium使用name定位报错 Locator Strategy 'name' is not supported for this session【多测师
报错提示:
Locator Strategy 'name' is not supported for this session
解决:
1.打开本地文件 driver.js (路径:C:\\Users\\wangzhiqiang(这里改为自己的用户名)\\AppData\\Local\\Programs\\appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-android-driver\\build\\lib)
2.查找 this.locatorStrategies = ['xpath', 'id', 'class name', 'accessibility id', '-android uiautomator'];
将 name加到里面, this.locatorStrategies = ['xpath', 'id', 'class name', 'accessibility id', '-android uiautomator','name'];
3.重启appium,再执行后,问题解决
👁️ 阅读量:0
© 版权声明:本文《appium使用name定位报错 Locator Strategy 'name' is not supported for this session【多测师》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686592440a301100.html。