We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这一句代码有bug,本地可能连了很多ios设备,但是不 一定每台都可以连得上,如果这里报错了,就会被误以为连接的是远程设备
The text was updated successfully, but these errors were encountered:
是的,我也有同样的问题。就是当同一个电脑连接了多个iphone设备,有些iphone设备没有启动WDA就会遇到这个问题。
解释下为啥我们用户要有些iphone不启动WDA呢: 我们测试人员跑自动化case的时候,并不能让WDA一直打开,因为这样跑的case多了,后面就不稳定了。我们就每条case开头和结尾分别启动WDA和关闭WDA,这样每条case就跑的很稳定了。
解决方案就是: root cause: 就是usb_dev = wda.Client(url=wda.requests_usbmux.DEFAULT_SCHEME + udid) 中的udid要是对应的iphone没有启动WDA,就会拿不到usb_dev.info['uuid']的信息,尝试去拿就会报错。
所以我们应该: device_list = wda.usbmux.Usbmux().device_list() 这里获取了device_list 之后,不要循环for dev in device_list:, 这样usb_dev = wda.Client(url=wda.requests_usbmux.DEFAULT_SCHEME + udid)中的udid就没有对应上WDA的iphone,就不会有报错了
Sorry, something went wrong.
Fix bug #1253
4ebd850
(cherry picked from commit 46556ab656ed08a405bc0dc7f5200e3caaf57af9)
No branches or pull requests
这一句代码有bug,本地可能连了很多ios设备,但是不 一定每台都可以连得上,如果这里报错了,就会被误以为连接的是远程设备
The text was updated successfully, but these errors were encountered: