Testing is performed for hybrid app, on iPad Simulator, iOS 7.1. Written in Java.
After updating Appium (till 1.3.1), xCode (6.1), OS X (till 10.10) any WebElement in WebView can’t be found. The most used strategy to find elements is “by name”. I tried to use some others -> only “by xpath” works. But it is the worst variant
In native context everything works fine.
This is respond to corresponding command from Appium console:
info: [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”}
This is error from IDE console:
org.openqa.selenium.TimeoutException:
Timed out after 30 seconds waiting for element to be clickable: Proxy
element for:
org.openqa.selenium.support.pagefactory.DefaultElementLocator@3586a6d2Build info: version: ‘2.44.0’, revision: ‘76d78cf323ce037c5f92db6c1bba601c2ac43ad8’, time: ‘2014-10-23 13:11:40’
Could you please check it? Or just suggest any workaround? I’m totally blocked with my automation tests.