Appium 已解决

riginnnn · 2024年12月26日 · 最后由 wupengfeng 回复于 2024年12月31日 · 3097 次阅读

已解决

共收到 2 条回复 时间 点赞

用了 8.12.0 的 wda 又出现了另外的问题....

报错

>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.WebDriverException: Message: Unhandled endpoint: /session/FDBBBEDD-3F24-471E-80C5-E4D60FA8CCA4/wda/touch/perform -- http://127.0.0.1:8100/ with parameters {
E           wildcards =     (
E               "session/FDBBBEDD-3F24-471E-80C5-E4D60FA8CCA4/wda/touch/perform"
E           );
E       }
E       Stacktrace:
E       UnknownCommandError: Unhandled endpoint: /session/FDBBBEDD-3F24-471E-80C5-E4D60FA8CCA4/wda/touch/perform -- http://127.0.0.1:8100/ with parameters {
E           wildcards =     (
E               "session/FDBBBEDD-3F24-471E-80C5-E4D60FA8CCA4/wda/touch/perform"
E           );
E       }
E           at errorFromW3CJsonCode (/Users/riginnnn/.appium/node_modules/@appium/base-driver/lib/protocol/errors.js:1112:25)
E           at ProxyRequestError.getActualError (/Users/riginnnn/.appium/node_modules/@appium/base-driver/lib/protocol/errors.js:981:14)
E           at JWProxy.command (/Users/riginnnn/.appium/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:348:19)
E           at processTicksAndRejections (node:internal/process/task_queues:95:5)
E           at XCUITestDriver.proxyCommand (/Users/riginnnn/.appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:112:35)
E           at XCUITestDriver.performTouch (/Users/riginnnn/.appium/node_modules/appium-xcuitest-driver/lib/commands/gesture.js:231:14)

/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py:245: WebDriverException

appium 日志

[84e3bd5c][XCUITestDriver@a7c9] Received the following touch action: press(options={"x":200,"y":100})-wait(options={"ms":200})-moveTo(options={"x":100,"y":100})-release(options={})
[84e3bd5c][XCUITestDriver@a7c9] Proxying [POST /wda/touch/perform] to [POST http://127.0.0.1:8100/session/041DEC21-AC7D-4405-B146-2BC39CA101B4/wda/touch/perform] with body: {"actions":[{"action":"press","options":{"x":200,"y":100}},{"action":"wait","options":{"ms":200}},{"action":"moveTo","options":{"x":100,"y":100}},{"action":"release","options":{}}]}
[84e3bd5c][XCUITestDriver@a7c9] Got response with status 500: {"value":{"error":"unknown error","message":"-[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x2802e9100","traceback":"(\n\t0   CoreFoundation                      0x0000000194ee26a8 BE405D8A-5464-37A3-A17E-1068DB404B23 + 968360\n\t1   libobjc.A.dylib                     0x000000018d19bc80 objc_exception_throw + 60\n\t2   CoreFoundation                      0x0000000194f72fdc BE405D8A-5464-37A3-A17E-1068DB404B23 + 1560540\n\t3   CoreFoundation                      0x0000000194e27e08 BE405D8A-5464-37A3-A17E-1068DB404B23 + 204296\n\t4   CoreFoundation                      0x0000000194f68950 _CF_forwarding_prep_0 + 96\n\t5   WebDriverAgentLib                   0x000000010bd27d10 -[XCUIElement(FBUtilities) fb_waitUntilStableWithTimeout:] + 308\n\t6   WebDriverAgentLib                   0x000000010bce29d8 -[XCUIApplication(FBTouchAction) fb_performAppiumTouchActions:elementCache:error:] + 196\n\t7   WebDriverAgentLib                   0x000000010bd2033...
[84e3bd5c][W3C] Matched W3C error code 'unknown error' to UnknownError

直接用 wda,拒绝中间商..

riginnnn 关闭了讨论 01月02日 10:38
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册