4 Replies
      Latest reply on Dec 3, 2019 5:46 AM by Schweszter
      jreyesv Level 1 Level 1 (0 points)

        Hi,

         

        We are currently experience issues with Xcode 11 beta 6/7 when running our existing UI tests suite on iOS 13 simulator

         

        Some of the issues we are seeing are:

        - when doing queries for elements that are Labels, for example
        XCUIApplication().staticTexts["accessibility-identifier-here"].firstMatch
        they 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"].firstMatch
        fixes 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 console
        expr 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