Appium Learning (Five) - Summary of Issues

1, Appium new version no longer supports ByName locate how to do

A move to modify the source code to solve the root of the problem, modify as follows:

Find your appium \ node_modules \ appium-android-driver \ build \ lib \ driver.js file, you only need to modify one line

this.locatorStrategies = [ 'xpath', 'id', 'class name', 'accessibility id', '-android uiautomator', 'name']; // note is not originally the last name, name is modified we add Up

After modifications are complete, save and restart appium service again, you can continue to use ByName locate it, perfect

Guess you like

Origin blog.csdn.net/weixin_34408717/article/details/90877528