[TIMOB-26816] [iOS] AccessibilityLabel isn't available in app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | accessibility, accessibilityLabel, appium, engSchedule, ios, simulator |
Reporter | josh.mocek |
Assignee | Abir Mukherjee |
Created | 2019-01-03T16:21:26.000+0000 |
Updated | 2020-11-23T18:08:12.000+0000 |
Description
Here is the titanium app: [https://github.com/joshmocekMovista/accessLabelBug](http://example.com)
Once you build the app you will click on the elements. If you do this in Android the "Access Label" will change depending on what you click. In iOS it never changes and stays at "Nothing". Here is the 'doClick' function that is a click event on certain elements in the XML:
function doClick(e) {
// This doesn't give us Accessibility Label not sure if this is a problem
console.info('JSON.stringify(e):\n' + JSON.stringify(e));
changeIndicatorLabel(String(e.source.accessibilityLabel));
changeIDLabel(String(e.source.id));
if (e.source.id == 'view2' || e.source.id == 'heyLabel') alert('You clicked view2 or heyLabel');
}
You will also notice when you build the app that the console in the function returns the object 'e', but it is missing the 'accessibilityLabel' property.
Attachments
File | Date | Size |
---|---|---|
index.js | 2019-01-03T16:17:16.000+0000 | 796 |
index.tss | 2019-01-03T16:17:16.000+0000 | 212 |
index.xml | 2019-01-03T16:17:16.000+0000 | 1324 |
Screen Shot 2019-01-21 at 1.15.46 PM.png | 2019-01-21T19:17:45.000+0000 | 113656 |
Screen Shot 2019-01-28 at 2.06.19 PM.png | 2019-01-28T11:15:50.000+0000 | 39157 |
tiapp.xml | 2019-01-03T16:17:16.000+0000 | 4230 |
Hello, Thanks for sharing with us. What's your Xcode version? It would be helpful if you can share the console logs here for better investigation.
I have 9 and 10 ImageView:
Hello, World:
Hey
Thanks for providing this. We are working on this. For testing purpose, can you please run the following code and let us know how it goes. Double-press on the label to see the output.
There is no click event in the code you gave me so I don't get anything. If I add it to the code I get this:
Here is the code I used:
Can you please try the following: To enable Accessibility Inspector on iOS simulator: Open Settings on the simulator. Click General, then Accessibility. Switch Accessibility Inspector to on. Please test again and let us know how it goes, For details please visit this [link](https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/accessibility.html).
No, it did not show anything. !Screen Shot 2019-01-21 at 1.15.46 PM.png|thumbnail!
Thanks for your feedback. Did you apply all the steps accordingly from [here](https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/accessibility.html?)?
Yes