Xcode UI test - UI Testing Failure - Failed to scroll to visible (by AX action) when tap on Search field "Cancel' button

前端 未结 8 1432
时光取名叫无心
时光取名叫无心 2020-12-04 08:32

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

相关标签:
8条回答
  • 2020-12-04 09:06

    Please check the trait of the element, i was facing the same issue with TableViewSectionHeader, i was trying to tap but it was failing at every point

    0 讨论(0)
  • 2020-12-04 09:09

    In my case it was having a programmatically added UI element covering the button.

    0 讨论(0)
提交回复
热议问题