Search code examples
swiftautomationxcode7ui-testingxcode-ui-testing

UITesting Xcode 7: How to tell if XCUIElement is visible?


I am automating an app using UI Testing in Xcode 7. I have a scrollview with XCUIElements (including buttons, etc) all the way down it. Sometimes the XCUIElements are visible, sometimes they hidden too far up or down the scrollview (depending on where I am on the scrollview).

Is there a way to scroll items into view or maybe tell if they are visible or not?

Thanks


Solution

  • Looks like this is a known bug :-(

    https://forums.developer.apple.com/thread/9934