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
--
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.
--
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.
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/F7C4AAEA-6987-4E77-9DF3-22A6B7D65373%40saucelabs.com.