• WebDriverAgent 简介 at 2016年11月16日

    使用 appium 的 inspector

    http://192.168.7.29:8100/inspector

    报如下错误:

    {
    "value" : "Invalid parameter not satisfying: path\n\n(\n\t0 CoreFoundation 0x00000001810bae50 + 148\n\t1 libobjc.A.dylib 0x000000018071ff80 objc_exception_throw + 56\n\t2 CoreFoundation 0x00000001810bad08 + 0\n\t3 Foundation 0x0000000181a40124 + 112\n\t4 WebDriverAgentLib 0x0000000102071624 -[FBResponseFilePayload initWithFilePath:] + 284\n\t5 WebDriverAgentLib 0x000000010206d364 FBResponseFileWithPath + 84\n\t6 WebDriverAgentLib 0x000000010207dc3c __29+[FBInspectorCommands routes]_block_invoke + 100\n\t7 WebDriverAgentLib 0x000000010206d684 -[FBRoute_Sync mountRequest:intoResponse:] + 168\n\t8 WebDriverAgentLib 0x0000000102065fb0 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 496\n\t9 RoutingHTTPServer 0x000000010685a3cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144\n\t10 RoutingHTTPServer 0x000000010685ab80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44\n\t11 libdispatch.dylib 0x0000000180b0547c + 16\n\t12 libdispatch.dylib 0x0000000180b14ae8 + 644\n\t13 libdispatch.dylib 0x0000000180b0547c + 16\n\t14 libdispatch.dylib 0x0000000180b0ab84 _dispatch_main_queue_callback_4CF + 1844\n\t15 CoreFoundation 0x0000000181070dd8 + 12\n\t16 CoreFoundation 0x000000018106ec40 + 1628\n\t17 CoreFoundation 0x0000000180f98d10 CFRunLoopRunSpecific + 384\n\t18 Foundation 0x00000001819a8d8c + 308\n\t19 Foundation 0x00000001819fdff8 + 88\n\t20 WebDriverAgentLib 0x0000000102065030 -[FBWebServer startServing] + 320\n\t21 WebDriverAgentRunner 0x00000001004ebed0 -[UITestingUITests testRunner] + 120\n\t22 CoreFoundation 0x00000001810c0ae0 + 144\n\t23 CoreFoundation 0x0000000180fb8548 + 284\n\t24 XCTest 0x000000010006e0a8 __24-[XCTestCase invokeTest]_block_invoke_2 + 388\n\t25 XCTest 0x00000001000a2c98 -[XCTestContext performInScope:] + 208\n\t26 XCTest 0x000000010006df0c -[XCTestCase invokeTest] + 268\n\t27 XCTest 0x000000010006e5e0 -[XCTestCase performTest:] + 460\n\t28 XCTest 0x000000010006ba5c -[XCTestSuite performTest:] + 428\n\t29 XCTest 0x000000010006ba5c -[XCTestSuite performTest:] + 428\n\t30 XCTest 0x000000010006ba5c -[XCTestSuite performTest:] + 428\n\t31 XCTest 0x0000000100057740 __25-[XCTestDriver _runSuite]_block_invoke + 56\n\t32 XCTest 0x0000000100078260 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 528\n\t33 XCTest 0x00000001000575d8 -[XCTestDriver _runSuite] + 460\n\t34 XCTest 0x00000001000583b4 -[XCTestDriver _checkForTestManager] + 296\n\t35 XCTest 0x00000001000a4164 _XCTestMain + 628\n\t36 CoreFoundation 0x000000018107100c + 20\n\t37 CoreFoundation 0x0000000181070944 + 308\n\t38 CoreFoundation 0x000000018106e8a8 + 708\n\t39 CoreFoundation 0x0000000180f98d10 CFRunLoopRunSpecific + 384\n\t40 GraphicsServices 0x0000000182880088 GSEventRunModal + 180\n\t41 UIKit 0x000000018626df70 UIApplicationMain + 204\n\t42 XCTRunner 0x000000010003c3d4 XCTRunner + 33748\n\t43 libdyld.dylib 0x0000000180b368b8 + 4\n)",
    "sessionId" : "03A46A84-D6F5-482C-AF51-96AEA66026DF",
    "status" : 13
    }

  • 以解决,用 7.1 的 xcode 会报错,升级为 8.1 的就正常了

  • 错误日志帖出来,有可能是路径变了,把页面元素打印出来,对比一下