python+Appium自动化:记录遇到的坑

1.打开 uiautomatorviewer同步的的时候突然报错

 

 

 Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException

解决:试了很多方法,重新开启uiautomatorviewer也没有解决,最后进入手机终端中,开发者模式,关闭再开启usb调试,就解决了~

 

2.error: Chromedriver: Chromedriver exited unexpectedly with code null, signal SIGTERM

解决:此路径C:\Users\XXX\AppData\Local\appium-desktop\app-1.5.0\resources\app\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win  加上 Chromedriver.exe

 

3.An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: A new session could not be created. (Original error: session not created exception: Chrome version must be >= 60.0.3112.0

 解决:Chromedriver.exe 驱动文件的版本不一致,根据webview选择下载驱动替换即可

posted on 2019-12-06 17:10  bug无处不在  阅读(736)  评论(0编辑  收藏  举报