XCUITest: isHittable property returns true when superview is hidden

Number:rdar://FB9658548 Date Originated:Sep 27, 2021
Status:Open Resolved:No
Product:iOS / XCUITest Product Version:15
Classification:Bug Reproducible:Always
Please describe the issue:
When an element is in a UITableView and its superview is hidden, isHittable returns true despite the element not being visible on the screen.

Please list the steps you took to reproduce the issue:
Add the view to a tableView, inside a container.
Set the container view to hidden.
Run a UI Test.
Observe that the view’s isHittable property returns true despite the view not being visible on screen.

What did you expect to happen?
isHittable returns false.

What actually happened?
isHittable returns true.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!