• Appium Log 如下:
    info: [debug] Socket data received (5277 bytes)
    info: [debug] Socket data being routed.
    info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":"ä¿æ¶æ·ä¸äº«","label":"ä¿æ¶æ·ä¸äº«","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":320,"height":460},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":n
    info: [debug] Pushing command to appium work queue: "au.getElementByIndexPath('/0/0/3')"
    info: [debug] Sending command to instruments: au.getElementByIndexPath('/0/0/3')
    info: [debug] [INST] 2015-02-17 01:29:24 +0000 Debug: Got new command 10 from instruments: au.getElementByIndexPath('/0/0/3')
    info: [debug] [INST] 2015-02-17 01:29:24 +0000 Debug: evaluating au.getElementByIndexPath('/0/0/3')
    info: [debug] [INST] 2015-02-17 01:29:24 +0000 Debug: evaluation finished
    info: [debug] [INST] 2015-02-17 01:29:24 +0000 Debug: responding with:
    info: [debug] [INST] 2015-02-17 01:29:24 +0000 Debug: Running system command #11: /usr/local/bin/node /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"ELEMENT":"2"}}...
    info: [debug] Socket data received (38 bytes)
    info: [debug] Socket data being routed.
    info: [debug] Got result from instruments: {"status":0,"value":{"ELEMENT":"2"}}
    info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"2"},"sessionId":"a62806fe-f705-4586-ba69-77f9e452d81c"}
    info: <-- POST /wd/hub/session/a62806fe-f705-4586-ba69-77f9e452d81c/element 200 2047.369 ms - 87 {"status":0,"value":{"ELEMENT":"2"},"sessionId":"a62806fe-f705-4586-ba69-77f9e452d81c"}
    info: --> POST /wd/hub/session/a62806fe-f705-4586-ba69-77f9e452d81c/element/2/clear {"id":"2"}
    info: [debug] Pushing command to appium work queue: "au.getElement('2').setValue('')"
    info: [debug] Sending command to instruments: au.getElement('2').setValue('')
    info: [debug] [INST] 2015-02-17 01:29:27 +0000 Debug: Got new command 11 from instruments: au.getElement('2').setValue('')
    info: [debug] [INST] 2015-02-17 01:29:27 +0000 Debug: evaluating au.getElement('2').setValue('')
    info: [debug] [INST] 2015-02-17 01:29:27 +0000 Debug: target.frontMostApp().elements()[0].elements()[3].tap()
    info: [debug] [INST] 2015-02-17 01:29:28 +0000 Debug: evaluation finished
    info: [debug] Socket data received (25 bytes)
    info: [debug] Socket data being routed.
    info: [debug] Got result from instruments: {"status":0,"value":""}
    info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"a62806fe-f705-4586-ba69-77f9e452d81c"}
    info: <-- POST /wd/hub/session/a62806fe-f705-4586-ba69-77f9e452d81c/element/2/clear 200 1547.627 ms - 74 {"status":0,"value":"","sessionId":"a62806fe-f705-4586-ba69-77f9e452d81c"}
    info: --> POST /wd/hub/session/a62806fe-f705-4586-ba69-77f9e452d81c/element/2/value {"id":"2","value":["13818181818"]}
    info: [debug] Pushing command to appium work queue: "au.getElement('2').setValueByType('13818181818')"
    info: [debug] Sending command to instruments: au.getElement('2').setValueByType('13818181818')
    info: [debug] [INST] 2015-02-17 01:29:28 +0000 Debug: responding with:
    info: [debug] [INST] 2015-02-17 01:29:28 +0000 Debug: Running system command #12: /usr/local/bin/node /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
    info: [debug] [INST] 2015-02-17 01:29:29 +0000 Debug: Got new command 12 from instruments: au.getElement('2').setValueByType('13818181818')
    info: [debug] [INST] 2015-02-17 01:29:29 +0000 Debug: evaluating au.getElement('2').setValueByType('13818181818')
    info: [debug] [INST] 2015-02-17 01:29:29 +0000 Debug: target.frontMostApp().keyboard().typeString("1")
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: target.frontMostApp().keyboard() failed to tap '1'
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: Error typing '1': VerboseError: target.frontMostApp().keyboard() failed to tap '1'
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: Retrying...
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: target.frontMostApp().keyboard().typeString("1")
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: target.frontMostApp().keyboard() failed to tap '1'
    info: [debug] Socket data received (76 bytes)
    info: [debug] Socket data being routed.
    info: [debug] Got result from instruments: {"status":17,"value":"target.frontMostApp().keyboard() failed to tap '1'"}
    info: [debug] Responding to client with error: {"status":17,"value":{"message":"An error occurred while executing user supplied JavaScript.","origValue":"target.frontMostApp().keyboard() failed to tap '1'"},"sessionId":"a62806fe-f705-4586-ba69-77f9e452d81c"}
    info: <-- POST /wd/hub/session/a62806fe-f705-4586-ba69-77f9e452d81c/element/2/value 500 2148.613 ms - 211
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Error: VerboseError: target.frontMostApp().keyboard() failed to tap '1'
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Error: Error during eval: typeString@[native code]
    sendKeysToActiveElement@file:///usr/local/lib/node_modules/appium/87825093-A08D-4163-9A35-BD32B808337B/bootstrap-65e0b16df0e74810.js:1266:32
    setValueByType@file:///usr/local/lib/node_modules/appium/87825093-A08D-4163-9A35-BD32B808337B/bootstrap-65e0b16df0e74810.js:1964:38
    eval code
    eval@[native code]
    startProcessing@file:///usr/local/lib/node_modules/appium/87825093-A08D-4163-9A35-BD32B808337B/bootstrap-65e0b16df0e74810.js:2663:30
    bootstrap@file:///usr/local/lib/node_modules/appium/87825093-A08D-4163-9A35-BD32B808337B/bootstrap-65e0b16df0e74810.js:2729:31
    global code@file:///usr/local/lib/node_modules/appium/87825093-A08D-4163-9A35-BD32B808337B/bootstrap-65e0b16df0e74810.js:2738:10
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: responding with:
    info: [debug] [INST] 2015-02-17 01:29:30 +0000 Debug: Running system command #13: /usr/local/bin/node /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":17,"value":"target.frontMostApp().keyboard() failed to tap '1'"}...