appium 报错 :selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator。

解决办法:需要在创建driver时增加2个参数。
desired_caps[‘chromeOptions’] = {‘w3c’:False}
desired_caps[‘showChromedriverLog’] = True

参考:

Fail to locate an web element using "findElement" on Android 9 using Appium 1.15.0 · Issue #13306 · appium/appium · GitHub