UITesting X code 7:如何判断XCUIElement是可见的? [英] UITesting Xcode 7: How to tell if XCUIElement is visible?
本文介绍了UITesting X code 7:如何判断XCUIElement是可见的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的自动化UI测试以x code 7.我有XCUIElements(包括按钮等),一个滚动视图一路下跌它的应用程序。有时XCUIElements是可见的,有时他们太远隐藏向上或向下滚动视图(根据我的滚动视图的位置)。
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?
感谢
推荐答案
看起来这是一个已知的bug: - (
Looks like this is a known bug :-(
https://forums.developer.apple.com/thread/9934
这篇关于UITesting X code 7:如何判断XCUIElement是可见的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文