Appium D:\AndroidSDK\platform-tools\adb.exe -s 59bea38b shell "ps 'uiautomator'"" 异常解决方式

最近在学习自动化测试,按照教程安装配置Appium
在网易云课堂上按照使用教程开始Appium测试

在Appium中引用apk配置devicename,开启appium server

点击“搜索”按钮开进入inspector window 点击refresh
并没有出现预想的界面,而是弹出窗口提示
这里写图片描述
错误是:D:\AndroidSDK\platform-tools\adb.exe -s 59bea38b shell “ps ‘uiautomator’”“

看错误应该是uiautomator有问题,于是搜索了很多文章,最后在使用appium在android7.0真机上测试程序时报错command failed shell “ps ‘uiautomator’”的解决方式
这篇文章中得到解决,需要修改Appium程序代码,然后重启Appium即可。

注意:每次启动Appium进入inspector window点击refresh都会自动安装Appium Setting和Unlock两个应用,每次重启,记得把上次的删除,否则也会出现这个server未连接的错误

猜你喜欢

转载自blog.csdn.net/cdhahaha/article/details/79958878
今日推荐