Affects Version/s: Release 7.5.0
Fix Version/s: Release 10.1.0
Android 7.1.1 & 8.0
Titanium SDK 7.5.0 & 7.1.1 & 7.1.0
Sprint:2021 Sprint 5, 2021 Sprint 6, 2021 Sprint 7, 2021 Sprint 8, 2021 Sprint 9, 2021 Sprint 10, 2021 Sprint 11, 2021 Sprint 14, 2021 Sprint 12, 2021 Sprint 13
Here is an appium project (it is not needed, but useful): https://github.com/joshmocekMovista/AccessibiltyLabel_Bug
Here is the titanium app: https://github.com/joshmocekMovista/accessLabelBug
Use the files that I had for the titanium app. You will notice that there are accessibilityLabels on multiple elements in the XML. So far the accessibilityLabels work somewhat on iOS. On Android they are currently showing up on Labels, but you will notice that they are on the wrong element on "TextFields" and "ImageViews". You can inspect the elements with appium or with the Android Tool UIAutomatorViewer.
Reference "textInputLayout-editText.png", "editText.png", "appium-TextInputLayout.png", and "appium-editText.png".
Here is the titanium XML:
On "TextFields" instead of being on the <EditText> element it is on the parent and looks like (disclaimer Android add a '.' to the accessibilityLabels:
This messes up automated testing since in selenium I want to run the same code for iOS and Android (it works on iOS currently). Here is they python code I run in selenium to add text to a <TextField> in iOS this works on Android it can't send the keys because it is trying to send the keys to the <TextInputLayout> element instead of <EditText> element:
I think the Android XML should look like this:
This is also a problem with the <ImageView> element. Reference "viewGroup-imageView.png" and "imageView.png". You will notice that the accessibilityLabel is on the <ViewGroup> element instead of the <ImageView> element. The Android looks like this:
I think it should look like this:
Once again this works on iOS and it doesn't on Android because it doesn't find the correct element because the "accessibilityLabel" is tied to the <ViewGroup> element instead of the <ImageView> element.