calabash / calabash-ios-server

An embedded HTTP server for performing queries and test automation
Other
87 stars 82 forks source link

Apply workaround for predicate assertion issue on iOS 15.5+ versions #479

Closed agileseph closed 1 year ago

agileseph commented 2 years ago

From iOS 15.5, it is added security action check that fails NSFunctionExpression with the following error: "(Foundation) [com.apple.Foundation:general] NSPredicate: NSFunctionExpression with selector 'accessibilityLabel' is forbidden." The issue is related to any accessibility property. However, it is used identifier and label properties in tests. In this pull request, I read accessibility id or label values first and then evaluate the predicate with these values.

agileseph commented 2 years ago

Hi, @JoeSSS , could u please have a look at the PR?

IlyaBausovAkvelon commented 1 year ago

@agileseph is it still happening in the iOS 16?