Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode UI Testing - Timestamped Event Matching Error

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

like image 873
Jason Hocker Avatar asked Apr 07 '16 19:04

Jason Hocker


2 Answers

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.

like image 167
Nuno Gonçalves Avatar answered Oct 11 '22 11:10

Nuno Gonçalves


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.

like image 3
Adam Avatar answered Oct 11 '22 11:10

Adam