Reputation: 1666
I'm iOS developer currently exploring automation testing with robot framework and Appium. I notice that Appium inspector (or maybe XCTest framework in general) cannot detect UIView element even if I put accessibilityIdentifier
in it.
Below is the view hierarrchy:
I add accessibilityIdentifier
with type string and value departure_button
on fromView
view since it is the view which hold the tapGesture
.
Well, I can select the first label to perform the click and get the same effect. But, is it normal behaviour?
Upvotes: 1
Views: 1007
Reputation: 7062
Try this answer, it helped me. Shortly speaking you have to check that parent doesn't appear to be accessibility element otherwise accessibility children elements are ignored.
Upvotes: 0