Posts

Post not yet marked as solved
5 Replies
2.7k Views
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 flakyThanks
Posted
by jreyesv.
Last updated
.
Post not yet marked as solved
14 Replies
4.5k Views
Hi,We have been using color assets to access colors like UIColor(named: "colornamehere") and that has been working fine with Xcode 10 but now trying with Xcode 11 beta 6 and 7 using iOS 11.4 Simulator and it can't find the colors anymore. Using the iOS 12 and 13 simulator works but not on 11Wondering if anyone has seen this tooThanks
Posted
by jreyesv.
Last updated
.
Post not yet marked as solved
4 Replies
1.7k Views
Hi,We are currently experience issues with Xcode 11 beta 6/7 when running our existing UI tests suite on iOS 13 simulatorSome of the issues we are seeing are:- when doing queries for elements that are Labels, for exampleXCUIApplication().staticTexts["accessibility-identifier-here"].firstMatchthey are not finding the element, instead is categorising it as a button even though it is a label (with a tap gesture recogniser) so changing the query to:XCUIApplication().buttons["accessibility-identifier-here"].firstMatchfixes it but it doesn't really make much sense that elements are being categorised differently than before since the code is the same.- With Xcode 10, while debugging the UI tests we are able to run in the consoleexpr print(XUIApplication().debugDescription)and see the elements that are in a modal on the view hierarchy, but with Xcode 11 those elements doesn't seem to be part of the view hierarchy so when trying to "tap" on them programatically it fails. Also, using the record function so that Xcode 11 writes the code for the tap actions, it crashes when tapping on elements that are on that modal, which happen to be the same elements that are missing when printing the view hierarchy on the console. This is completely fine in Xcode 10 but not in Xcode 11 Wondering if other devs are experiencing the same or similar problems and if this is a Known issue that hasn't been updated on the release notes.Thanks
Posted
by jreyesv.
Last updated
.