Testing if an element is visible with Xcode 7 UITest

后端 未结 6 1387
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 10:19

I want to verify if an element is visible or not depending on its .hidden property but I don\'t find a valid way to do that using the new Xcode 7 UI test stuff.

6条回答
  •  没有蜡笔的小新
    2020-12-03 10:36

    XCUIElement.hittable works for me (in my particular test case where I am checking several UIButton elements for visibility) - quite sure it is not a right way to do it though

提交回复
热议问题