Testing if an element is visible with Xcode 7 UITest

后端 未结 6 1379
佛祖请我去吃肉
佛祖请我去吃肉 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:45

    Next code worked for me. At the end of the test you can past code as follow:

    while ([app.staticTexts matchingIdentifier:@"accesibilityId"].count > 0) {
            sleep(1);
        }
    

提交回复
热议问题