Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6690] Unable to view all elements in IOS for APPIUM testing

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterLuke Lu
AssigneeAbir Mukherjee
Created2021-04-12T23:32:40.000+0000
Updated2021-04-19T01:17:59.000+0000

Description

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

Attachments

FileDateSize
Screen Shot 2021-04-13 at 9 (1).jpg2021-04-12T23:30:31.000+0000110116
Screen Shot 2021-04-13 at 9 (3).jpg2021-04-12T23:31:45.000+0000117538

Comments

  1. Joshua Quick 2021-04-14

    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...
       //XCUIElementTypeTextField[@name="TextField1."]
       
    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.
  2. Luke Lu 2021-04-19

    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 , all the elmeents would then be hidden under 1 elements and we cant do anything.

JSON Source