报错提示:
Locator Strategy 'name' is not supported for this session
解决:
1.打开本地文件 driver.js (路径:C:Userswangzhiqiang(这里改为自己的用户名)AppDataLocalProgramsAppium esourcesapp ode_modulesappium ode_modulesappium-android-driveruildlib)
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,再执行后,问题解决