kif-framework / KIF

Keep It Functional - An iOS Functional Testing Framework
Other
6.2k stars 911 forks source link

Fix #1240 waitForView on label in tableview not working #1241

Closed dostrander closed 2 years ago

dostrander commented 2 years ago

UIAccessibilityElementMockView does not respond to the selector view anymore, which causes the tableview to be returned when looking for a subview in the hierarchy.

This checks the class name to see if it's a UIAccessibilityElementMockView then will get the view via valueForKey:

Fixes #1240

bcriscuolo commented 2 years ago

Hey there @dostrander I wanted to report to you that I've confirmed this in our rather large KIF implementation by applying the changes locally. Looking great so far, and will pull in the release as soon as you have it up. Thanks!

Brian Criscuolo - Salesforce Field Service