I am trying to dismiss the search field by tapping \'Cancel\' button in search bar.
The test case is failing to find the cancel button. It was working fine in Xcode
For me, the root cause was that the objects I wanted to tap
In both cases the isAccessibilityElement property was false afterwards. Setting it back to true fixed it.
isAccessibilityElement
false
true