Seto
Seto

Reputation: 1666

Appium inspector for iOS app cannot detect UIView inside UIStackView

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:

IB with UIStackView

IB with UIStackView

I add accessibilityIdentifier with type string and value departure_button on fromView view since it is the view which hold the tapGesture.

Below is the Appium inspector enter image description here

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

Answers (1)

Henadzi Rabkin
Henadzi Rabkin

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

Related Questions