XCUIElement hittable incorrect

Hi,


The XCUIElement hittable property is returning true no matter if my element is any of the following

- enabled=false

- hidden=true


What is this property actually checking? - I just want to know if the element is or isn't hidden.


Thanks


Chris

Replies

The only work-around I have found is when setting the elements hidden property I also set the accessibilityIdentifier...ie:


element.hidden = true
element.accessibilityIdentifier = ""

element.hidden = false
element.accessibilityIdentifier = "theName"

I believe this issue has been addressed in the Xcode 7.1 beta?

No it hasn't. This is still an issue in Xcode 8

issue in Xcode 8

Did anyone file a bug about this? If so, what’s the bug number?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"