Appium appium1.13+xcode11.1+iOS13.1,求救中之前 iOS12.4+xcode10.1 正常

haha269 · 2019年10月29日 · 最后由 shizhongping 回复于 2019年10月30日 · 2447 次阅读

[HTTP]
[WD Proxy] Got response with status 200: "{\n \"value\" : \"iVBORw0KGgoAAAANSUhEUgAAAzwAAAcACAIAAACaY9F8AAAAAXNSR0IArs4c6QAA\r\nAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKAC\r\nAAQAAAABAAADPKADAAQAAAABAAAHAAAAAAAYjVEBAAAAHGlET1QAAAACAAAAAAAA\r\nA4AAAAAoAAADgAAAA4AAAWPgPg9oxAAAQABJREFUeAHsvfmTHdd9ZwmKu7iBC1BA\r\nrUCh9nq1V2HlClJctFASSXEBAXDfSZGSbC1Wu71Ibs9vPT90xPw2EzEd4d1ys710\r\ny5YscwMXyfb8NTMR3XZ7Tr4PcPlYyyMAVRUq9Q4iI3HzZr7Me0\/mq3vye2\/m29aY\r\nnHWSgAQkIAEJSEACEtjiBLZt8fJZPAlIQAISkIAEJCABCChtBholIAEJSEACEpBA\r\nDQgobTU4Sd5eSEACEpCABCQgAaVNaZOABCQgAQlIQAI1IKC01eAkeW8hAQlIQAIS\r\nkIAElDalTQISkIAEJCABCdSAgNJWg5PkvYUEJCABCUhAAhJQ2pQ2CUhAAhKQgAQk\r\nUAMCSlsNTpL3FhKQgAQkIAEJSEBpU9okIAEJSEACEpBADQgobTU4Sd5bSEACEpCA\r\nBCQgAaVNaZOABCQgAQlIQAI1IKC01eAkeW8hAQlIQAISkIAElDalTQISkIAEJCAB\r\nCdSAgNJWg5PkvYUEJCABCUhAAhKot7RNTsx4CiUgAQlIQAISkEAnEKi3tG3CGZpq\r\nzG3CUTyEBCQgAQlIQAISaE9AafuU7lGkLVN7jq6VgAQkIAEJSEACG0pAafsUadtQ\r\n+u5cAhKQgAQkIAEJnCWB+ktbY7qx2jQ5ObX6NDHDSLiV01nycjMJSEACEpCABCRw\r\nQQjUVdo+tq615Gyt...
[XCUITest] Connection to WDA timed out
[iProxy] recv failed: Operation not permitted
[WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/4F9B0734-560F-4C69-A81A-5D92E7CAE926/window/size] with no body
[MJSONWP (a0701c60)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAAAzwAAAcACAIAAACaY9F8AAAAAXNSR0IArs4c6QAA\r\nAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKAC\r\nAAQAAAABAAADPKADAAQAAAABAAAHAAAAAAAYjVEBAAAAHGlET1QAAAACAAAAAAAA\r\nA4AAAAAoAAADgAAAA4AAAWPgPg9oxAAAQABJREFUeAHsvfmTHdd9ZwmKu7iBC1BA\r\nrUCh9nq1V2HlClJctFASSXEBAXDfSZGSbC1Wu71Ibs9vPT90xPw2EzEd4d1ys710\r\ny5YscwMXyfb8NTMR3XZ7Tr4PcPlYyyMAVRUq9Q4iI3HzZr7Me0/mq3vye2/m29aY\r\nnHWSgAQkIAEJSEACEtjiBLZt8fJZPAlIQAISkIAEJCABCChtBholIAEJSEACEpBA\r\nDQgobTU4Sd5eSEACEpCABCQgAaVNaZOABCQgAQlIQAI1IKC01eAkeW8hAQlIQAIS\r\nkIAElDalTQISkIAEJCABCdSAgNJWg5PkvYUEJCABCUhAAhJQ2pQ2CUhAAhKQgAQk\r\nUAMCSlsNTpL3FhKQgAQkIAEJSEBpU9okIAEJSEACEpBADQgobTU4Sd5bSEACEpCA\r\nBCQgAaVNaZOABCQgAQlIQAI1IKC01eAkeW8hAQlIQAISkIAElDalTQISkIAEJCAB\r\nCdSAgNJWg5PkvYUEJCABCUhAAhKot7RNTsx4CiUgAQlIQAISkEAnEKi3tG3CGZpq\r\nzG3CUTyEBCQgAQlIQAISaE9AafuU7lGkLVN7jq6VgAQkIAEJSEACG0pAafsUadtQ\r\n+u5cAhKQgAQkIAEJnCWB+ktbY7qx2jQ5ObX6NDHDSLiV01nycjMJSEACEpCABCRw\r\nQQjUVdo+tq615Gyt/NWM7eO9rVh7Qc6KB5WABCQgAQlIQALLCNRS2opjTYxPrx5O\r\n...
[HTTP] <-- GET /wd/hub/session/a0701c60-924f-42f6-afcd-c0bbd7aa3a0a/screenshot 200 232 ms - 165646
[HTTP]
[XCUITest] Connection to WDA timed out
[iProxy] recv failed: Operation not permitted
[WD Proxy] Got response with status 200: "{\n \"value\" : \"-[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x2829e80c0\n\n(\n\t0 CoreFoundation 0x000000019ce59c44 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1256516\n\t1 libobjc.A.dylib 0x000000019cb740c8 objc_exception_throw + 60\n\t2 CoreFoundation 0x000000019cd57fc0 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 200640\n\t3 CoreFoundation 0x000000019ce5e3d4 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1274836\n\t4 CoreFoundation 0x000000019ce60570 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x00000001059d0e8c -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60\n\t6 WebDriverAgentLib 0x00000001059c89d0 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 732\n\t7 WebDriverAgentLib 0x00000001059c8bf4 -[XCUIElement(WebDriverAttributesForwarding) forwa...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[MJSONWP (a0701c60)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x2829e80c0
[MJSONWP (a0701c60)]
MJSONWP (a0701c60)
[MJSONWP (a0701c60)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[MJSONWP (a0701c60)] at ProxyRequestError.errorFromMJSONWPStatusCode as getActualError
[MJSONWP (a0701c60)] at JWProxy.getActualError as command
[HTTP] <-- GET /wd/hub/session/a0701c60-924f-42f6-afcd-c0bbd7aa3a0a/window/current/size 500 345 ms - 8215

共收到 7 条回复 时间 点赞

WebDriverAgent 版本的问题,到 Appium 的仓库里下载最新 WebDriverAgent 把本地的 WDA 覆盖了,试试看

ltyd5788 回复

WebDriverAgent 版本问题? 就是用原来 12.4 的不行了呗?

haha269 回复

Appium 从 1.15.0 开始支持 iOS13 的设备,也为 Xcode11 增加了新的快照 elementSnapshotForDebugDescription API,从你提供的日志你用的还是旧版的 WDA,最新的 WDA 已经兼容了这部分逻辑,最快的检查方式是到 WebDriverAgent 全局搜下 XCUIElementQuery.h 文件里看看有无 elementSnapshotForDebugDescription API,更新 Appium 版本或者是 WDA 版本都是可以解决的

ltyd5788 回复

appium 1.15.1 并没有找到 WebDriverAgent😅 我才改回 1.13 的 WDA 里我也查了 的确都没有,XCUIElementQuery.h 文件里看看有无 elementSnapshotForDebugDescription API

haha269 回复

我也只能提供问题的原因以及解决的思路,剩下遇到的问题只能 google 了吧,试试这个路径吧, /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

ltyd5788 回复

在原来 1.13 有这个路径,/appium-xcuitest-driver,在 1.15 并没有这个文件夹,我试试,如果成功再回帖,iOS13.1+appium1.15.1+xcode11,1

7楼 已删除
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册