Xcode 11.1 XCUITest now failing when trying to perform Swipe on elements

Since we upgraded to Xcode 11.1 now we are having a lot of UI tests failing due to the Swipe function not working anymore. For example, trying to swipe left on a table cell fails with:



Unable to perform Swipe left on Cell at {{0.0, 369.0}, {375.0, 94.0}}: visible frame is empty, which may happen if the element is offscreen.



But is not only on table cells but also on scrollviews, staticText and so on.


In some cases we are able to replace with XCUIApplication().swipeUp/Left etc but in other cases, for example interacting with a particular table cell (swipeLeft) the alternative will not work for us.


Is anyone else experiencing this?


Can we get some Apple devs to look into it? The XCUITest framework changed a lot with Xcode 11 betas and GMs and it's pretty flaky


Thanks

Replies

+1 I'm experiencing this same issue. Was anyone able to figure this out or a workaround?

I have same problem!

The same problem

Hi,


If anyone of you have any workaround on above issue please update

interacting with a particular element (swipeLeft) with the alternative is not working for me

The problem is raised because the cell / staticText is not visible on the screen.

The solution:
scroll down the tableView (app.tables["tablename"].swipeUp()), then swipe left when the cell / staticText is visible.