appuim 做自动化测试的时候遇到的一些报错 附解决方法
1、selenium.common.exceptions.InvalidElementStateException: Message: Unable to perform W3C actions. Check the logcat output for possible error reports and make sure your input actions chain is valid.
2、http.client.RemoteDisconnected: Remote end closed connection without response
3、An unknown server-side error occurred while processing the command. Original error: Unable to initialize the detection process. Please ensure that the application under test does not crash and investigate the logcat output.
通用原因可能是:1、网络不好。2、appium 版本不兼容问题 3、夜神模拟器问题。
解决方法:将夜神模拟器升级到官网发布的稳定版本,将appium 由 1.15.1 升级到 1.19.1 即可解决。
另外小伙伴要注意 :开发每次发的包,包名不会改动,但是启动页名字可能会变,注意更新 appActivity 参数。
appium 依赖 安卓SDK 和 java 环境 。一定不要随意改动java_home路径啊! 不然可能会报错。
Release 1.19.1 · appium/appium-desktop · GitHub
appium 客户端在GitHub 上下载 19版本较稳定。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 提示词工程——AI应用必不可少的技术
· 地球OL攻略 —— 某应届生求职总结
· 字符编码:从基础到乱码解决
· SpringCloud带你走进微服务的世界