I have a view with two subviews a button and an Image, I turn on accessibility and set the label on the subviews and I can see the hierarchy by calling
UIATarget.localTarget().frontMostApp().mainWindow().logElementTree();
I get the following for example:
1 Window
2 My View
3 My Button
3 My Image
If I then turn on accessibility and set the label for my parent view I can no longer see my button and image anywhere in the hierarchy.
I just get:
1 Window
2 My View
Why have my views disappeared?