Hey,
We am using appium to automate the test process for our titanium app. For Android, everything is good and we are running it pretty smoothly. BUT for ios, we cannot view all the elements in the page. To be specific, anything inside
or elements created dynamically with JS are shown as single elements without child, so we cannot access the textfield or anything beneath it. Though it was appium issue but looks like titanium while building the ipa.
Maybe related to this
https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/iPhoneAccessibility/Making_Application_Accessible/Making_Application_Accessible.html ?
For better understanding, here's 2 page
- #1 Login Page, with no
or dynamically generated elements => All good , all elements are visible to appium
!Screen Shot 2021-04-13 at 9 (1).jpg|thumbnail!
- #2 Dashboard Page, with and dynamically generated elements => Cannot select each elements , everything is grouped as one
!Screen Shot 2021-04-13 at 9 (3).jpg|thumbnail!
Let me know if you need any more information, just for info, tried building app with 9.3.1.GA, same result
Are you setting the "accessibilityLabel" property on your
TextField
? For example, if you set the accessibility label to "TextField1", then the XPath to it will be this...I haven't used Appium before, but I know we use it internally to test the Titanium SDK and one of our tests accesses a TextField within a TableView.
Yes we do have accessibilityLabel set, tbh even if we dont set it, you should atleast be able to view individual element (ofcouse without the label). As in the screenshots above, those are shown fine in login page, but if I say wrap those inside a