Xcode UI Testing - Timestamped Event Matching Error
Asked Answered
O

2

31

We are getting this error when recording a UI test. At this point the recorder stops recording code. What does it mean?

enter image description here

Overwinter answered 7/4, 2016 at 19:27 Comment(3)
Simples answer to your question is that it doens't find the item you clicked in. How to fix this, it's what I'm search for as well.Keeshakeeshond
Xcode 8 still exists, I think it's a bugTribunate
This work for me: #36617391Safeconduct
S
9

What this means is that when you click on an item, Xcode can't figure what element it was. Not sure if it's a bug or not.

In my case I was clicking on a table view cell, and was getting this. The way I got around it was adding these lines:

let cells = app.tables.cells
cells.elementBoundByIndex(0).tap()

Get the reference of the table cells, and for the tap yourself on the view. Of course this is a case by case solution, but it should help you carry on.

Spacial answered 16/6, 2016 at 22:47 Comment(0)
D
3

Try adding your storyboard to the UI tests target membership.

Click the storyboard, then on the right click file inspector, then scroll down to target membership and click UI tests.

Doris answered 7/6, 2017 at 20:6 Comment(2)
My solution to my first UI Tests in Xcode 9, thanks!Tick
This did not help me.Unsnap

© 2022 - 2024 — McMap. All rights reserved.