Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
本地模拟器使用
127.0.0.1:5555
,emulator-5554
等作为 serial。调用 u2.connect() 时,_fix_wifi_addr()
会请求http://emulator-5554/version
,但需要等待 requests 超时才会抛出域名解析错误的异常,请求http://127.0.0.1:5555/version
也需要等到读取超时以
emulator-
开头或者是127.0.0.1:
开头的都是本地模拟器了,直接绕过可以节省两秒钟uiautomator2/uiautomator2/__init__.py
Lines 1887 to 1902 in 08d7186