1.元素定位1
issue:Android的AutomationViewer不能找到元素
solution:可能有多个一样的id、class等一样的属性,此时会找到layout的第一个元素。分析xpath从新定位元素。
2.元素定位2
issue:error msg:invalid argument:invalid locator(Fail to locate an web element using "findElement" on Android)
solution:https://github.com/appium/appium/issues/13306
desired_caps['chromeOptions'] = {'w3c': False}
3.Android设备连接
issue:连接不上Android device
solution:开发者模式下,开关device的USB调试功能。
4.iOS设备
issue:original error :'12.4' dose not exist in the list of simctl SDKs. only the following simulator SDK versions are available on your system : 13.4, 6.2, xxxxx
solution: set desired_caps['udid'] = '123456xxxxx'