Search code examples
swiftxcodexcode-ui-testing

Timestamped Event Matching Error: Failed to find matching element


I'm trying to generate a UItest in Xcode. When I try to swipe UIview I get an error:

Timestamped Event Matching Error: Failed to find matching element

error window

enter image description here

This also happens if I try to tap UIView.


Solution

  • You should verify that the 'Accessibility' option is enabled for the UIView object you are swiping from, for example:

    enter image description here