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
In my case it was having a programmatically added UI element covering the button.