When i use the by name strategy is not working for me in native context.
I m using xcode 6.0 on iOS 8.0.2 iPhone. Appium 1.3.1.
The logs i get are similar
fo: [debug] Pushing command to appium work queue: "au.getElementByName('New Email')"
info: [debug] Sending command to instruments: au.getElementByName('New Email')
info: [debug] [INST] 2014-11-05 10:07:32 +0000 Debug: Got new command 44 from instruments: au.getElementByName('New Email')
info: [debug] [INST] 2014-11-05 10:07:32 +0000 Debug: evaluating au.getElementByName('New Email')
info: [debug] [INST] 2014-11-05 10:07:32 +0000 Debug: evaluation finished
info: [debug] [INST] 2014-11-05 10:07:32 +0000 Debug: responding with:
info: [debug] [INST]
2014-11-05 10:07:32 +0000 Debug: Running system command #45:
/usr/local/Cellar/node/0.10.28/bin/node
/Users/student/appium/submodules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock 2,{"status":0,"value":""}...
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Condition unmet after 3183ms. Timing out.
info:
[debug] Responding to client with error:
{"status":7,"value":{"message":"An element could not be located on the
page using the given search
parameters.","origValue":""},"sessionId":"a2175e11-f742-4834-b429-4e26a87b0dc6"}