【Appium踩坑】Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded

【Appium踩坑】Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded,第1张

      • 报错
      • 解决
      • 扩展思路

报错
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded
解决

同 Error: socket hang up

*oppo 手机
设置-电池,把 appium 相关的 APP 关闭

*vivo 手机
设置 -> 电池 -> 后台高耗电, 把 appium 相关的app都开启

*小米 手机
应用管理 - appium相关的APP全部停止运行

扩展思路

碰到这个报错,重新起个session

在driver类里增加一个异常处理;
出现 exception -> 重新创建session

webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/730809.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-27
下一篇 2022-04-27

发表评论

登录后才能评论

评论列表(0条)

保存