Closed skheirandish closed 3 years ago
Could you elaborate please?
When I print the XCUIApplication
in debug panel I can't see elements inside MaskingView
. All the subviews are not accessible. I have looked at the hierarchy and it seems that all container views are not accessible elements (which is the way it should be) and all my subviews, UILabels and UIButtons are accessible elements.
Basically it looks right but ultimately the view thats being presented is not in the XCUIApplication hierarchy so I cant find it for my tests.
In this image none of these views are accessibility elements but inside the very last view (ToastView) there are UILabels and UIButtons that are accessibility elements.
I need to be able to see some StaticTexts
and some OtherElements
inside XCUIApplication
but i cant.
SwiftMessages had enhanced accessibility features. As part of this, MaskingView
is an accessibility container. Your view needs to adopt AccessibleMessage
to integrate properly with this system. My suggestions are:
Accessibility
section in the ReadmeAccessibleMessage
in Presenter
to understand how it is used.AccessibleMessage
in MessageView
to understand how to adopt the protocol.Hope that helps.
Perfect, following the sample in MessageView
helped me. Thank you.
This is as far as I can print in the hierarchy:
I have labeled those views for better understanding of where it stops printing.