We are using Appium to automate a consumer mobile app in iOS as well as Android. In Android, we have got “resource id” for almost all the elements and we are able to automate it successfully. For iOS we have got “xpath” for all the elements and at some places we are facing issues with that.
My question is, for iOS, can we only have Xpath or can we have some other better identifier like “resource id” too. In order for us to see other identifiers for iOS what property has to be set by the developers in the APP.
I am also using appium for ios and we are unable to see id resource-id attributes in Hybrid WebView (Cordova) app even developement add the id’s resource-ids
For name attribute value is replace with the text which is add in html anchor tags.
Please suggest what exactly the problem,is ios app restricting the id/resource-id attributes or appium??