Appium 编译 WDA,访问 http://localhost:8100/inspector,页面元素一直获取不到

MLL · January 14, 2020 · Last by MLL replied at January 20, 2020 · 947 hits

请各位帮忙看看什么问题

共收到 3 条回复 时间 点赞
MLL #1 · January 14, 2020 作者

xcode 日志
2020-01-14 16:02:14.341924+0800 WebDriverAgentRunner-Runner[2412:757583] Running tests...
objc[2412]: Class GCDAsyncSocketPreBuffer is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d620) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x106744578). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncReadPacket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d670) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x1067445c8). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncWritePacket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d6c0) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x106744618). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncSpecialPacket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d710) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x106744668). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncSocket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d760) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x1067446b8). One of the two will be used. Which one is undefined.
Test Suite 'All tests' started at 2020-01-14 16:02:14.545
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-01-14 16:02:14.546
Test Suite 'UITestingUITests' started at 2020-01-14 16:02:14.546
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2020-01-14 16:02:14.547
t = 0.00s Set Up
2020-01-14 16:02:14.594060+0800 WebDriverAgentRunner-Runner[2412:757583] Built at Jan 14 2020 15:13:22
2020-01-14 16:02:14.609648+0800 WebDriverAgentRunner-Runner[2412:757583] ServerURLHere->http://10.2.29.36:8100<-ServerURLHere
2020-01-14 16:02:14.609966+0800 WebDriverAgentRunner-Runner[2412:757701] Using singleton test manager
2020-01-14 16:07:42.907821+0800 WebDriverAgentRunner-Runner[2412:757583] -[XCUIApplication resolve]: unrecognized selector sent to instance 0x2809f0af0
2020-01-14 16:11:48.861791+0800 WebDriverAgentRunner-Runner[2412:757583] -[XCUIApplication resolve]: unrecognized selector sent to instance 0x2809f0af0

[XCUIApplication resolve]: unrecognized selector sent to instance 0x2809f0af0, resolve方法从Xcode 11.0已经废弃了,最新的Appium WebDriverAgent另外用了其他方法做了兼容,但是他们废弃了inspector端点,所以你还想访问inspector最好是降低Xcode版本或者到Appium/WebDriverAgent找指定的commit更新下代码也行

MLL #3 · January 20, 2020 作者
ltyd5788 回复

我下载了最新的appium 1.16.0, 重新编译自带的WDA,虽然inspector命令还是没有被识别,但是appium可以正常运行了,感谢!!

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up