- 报错
- 解决
- 扩展思路
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)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)