I managed to access the interior of my scroll view. What I did wrong:
- Configure the availability of my root view.
- Setting accessibility for me is a customized view.
After that I was able to do this:
var window = UIATarget.localTarget().frontMostApp().mainWindow(); window.logElementTree();
To see all the UIView inside my UIScrollView. To access one of the buttons:
var scrollView = window.scrollViews()[0]; var button=scrollView.buttons()["showMeStuff"]; button.tap();
PS: You can also determine the availability of UIScrollView by doing the following:
scrollView.isAccessibilityElement = YES; scrollView.accessibilityLabel = @"someScrollView";
Peres source share