I am new to iOS and writing a UI test case for a screen. The thing is, I want to write such a test case where I want to test same behavior for a particular type of UIElement (for eg, same behavior for button type). So instead of writing tests for different screens I wanted to know if there's some way in XCUI or any other framework where we can get all UIElements present on the screen in some data structure. Thanks