Through Appium inpector, we are unable to see ID/Resource-ID attributes for IOS webview app

48 views
Skip to first unread message

Durga Prasad

unread,
Oct 12, 2015, 10:51:40 PM10/12/15
to appium-developers

Hi All,


I'm trying to test our Cordova app in Appium. When I view the elements in the Appium Inspector, they don't seem to have anything that I can use as far as identifiers.


I am setting various things in the HTML for this element, such as id, name, etc. (it also has a label that is using the for attribute that points to the input.) but it does not appear to have anything that I can look for. So I end up looking for UIATextField elements with value of Email. This is undesirable since I do not have a consistent way to look up inputs. For example, if I change the value of the input, I would need to look up the element by that new input.

So my question is: how can I set accessibility identifiers or any handles for this element from the HTML from Cordova? I would even take data-* attributes that I could query for. Or am I going about this incorrectly?

I ask about accessibility identifiers since I have read in other places that I should not use XPath selectors for Appium tests, but I can see no clear reason why this is the case (it seems to work for me.)



Please suggest us.


Thanks,

Durga Prasad

Jonathan Lipps

unread,
Oct 12, 2015, 11:41:27 PM10/12/15
to appium-d...@googlegroups.com
This mailing list is for discussion about Appium development, not how to use Appium or troubleshooting. Please redirect your question to https://discuss.appium.io/

Jonathan

--
You received this message because you are subscribed to the Google Groups "appium-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-develop...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/appium-developers/b86d8745-262d-450c-901d-e88cf9097fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Durga Prasad

unread,
Oct 13, 2015, 1:19:54 AM10/13/15
to appium-d...@googlegroups.com
Sure Jonathan,Thanks for info.I will redirect it.

--
You received this message because you are subscribed to a topic in the Google Groups "appium-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-developers/ZjGO8YMZ7Wo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appium-develop...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages