各程序版本信息:

(Appium 版本:1.4.13,ios 版本:4s 9.1 mac 版本:10.10.5,Xcode 版本:7.1)

Appium 的 Debug 信息如下:

Error: invalid json

    at parse (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/body-parser/lib/types/json.js:79:15)

    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/body-parser/lib/read.js:102:18

    at done (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/body-parser/node_modules/raw-body/index.js:248:14)

    at IncomingMessage.onEnd (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/body-parser/node_modules/raw-body/index.js:294:7)

    at IncomingMessage.g (events.js:199:16)

    at IncomingMessage.emit (events.js:104:17)

    at _stream_readable.js:908:16

    at process._tickDomainCallback (node.js:381:11)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {"status":0,"value":{"origin":{"x":16,"y":192},"size":{"width":288,"height":48}}}

info: <-- POST /tap 500 1.069 ms - 66

info: [debug] Responding to client with error: {"status":1,"value":{"message":"undefined status object"},"sessionId":"fd36b327-11d8-4f17-87ff-81521b8b4ba9"}

info: <-- POST /wd/hub/session/fd36b327-11d8-4f17-87ff-81521b8b4ba9/element/0/click 500 1048.807 ms - 109 


↙↙↙阅读原文可查看相关链接,并与作者交流