一.APPIUM报错:occurred while processing the command. Original error: The desired capabilities must include either an app, appPackage or browserName
解决办法:
1.caps加上'automationName':'UiAutomator1';
2.该问题出现的原因是:安装了不同的uiautomator版本,卸载原来的就行。但是手动卸载Appium Settings后还是会出现该问题,需要在终点命令窗口中输入以下命令:adb uninstall io.appium.uiautomator2.server.test,然后在通过appium启动就不会有问题了;
3.查看 Config 里 skipServerInstallation: true 改成 skipServerInstallation: false
重新执行一次,成功✅ 然后再改下 skipServerInstallation: true;
4.解决方法:在终端输入命令:killall -9 node;
5.万能重启。
二.ValueError: invalid literal for int() with base 10: '13191\n13191\n13215\n'
解决办法:
命令行输入:os.kill(int(pid), signal.SIGKILL)