I tried:
SLButton *actionSheetButton = [SLButton elementWithAccessibilityLabel:@"Remove"]; // also tried same with SLElement
BOOL popoverDisplayed = SLWaitUntilTrue([UIAElement(actionSheetButton) isValidAndVisible], 3.0);
if (popoverDisplayed) {
[UIAElement(actionSheetButton) tap];
}
I was able to dismiss/cancel the action sheet using SLPopover, but I'd like to test the button actions.
Thanks.
Edit:
The error logged in Instruments:
Unexpected exception occurred
***SLUIAElementNotTappableException***
for reason: Element '<SLButton description:"Remove"
>' is not tappable.