执行到 driver.background_app(3) 的时候,提示错误:WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Timeout waiting until SpringBoard is visible" UserInfo={NSLocalizedDescription=Timeout waiting until SpringBoard is visible}
更改 wda 的 WebDriverAgent/blob/master/WebDriverAgentLib/FBSpringboardApplication.m 文件
最后的返回为
return self.otherElements[@"Dock"].isEnabled || self.otherElements[@"程序坞"].isEnabled; 问题解决。
hello,大牛,我直接把你给的代码添加到文件中,
,但是还是提示和之前相同的错误,我是哪里没改对?
代码中的输出需要改一下?
我现在的环境:appium:1.9.1,xcode:10,python:2.7.13;另外,能大概讲一下这个问题的原因吗?辛苦大牛。
appium1.9 的,用下 python3.5 以上试试,这个要版本匹配的
由于历史原因,python 的版本不能改,如果改的话,需要大改。
@lei 什么手机,语言设置的啥, 还是报原来的错吗
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Timeout waiting until SpringBoard is visible" UserInfo={NSLocalizedDescription=Timeout waiting until SpringBoard is visible}
还是这个错误提示
@lei 这个错就是找不到桌面的问题,修改之后重新编译运行,应该是没问题的,有点怀疑你没改对或重新编译运行的不对,检查检查。
我也遇到这个问题,按照你说的修改后可以了,哈哈 非常感谢