UITesting Xcode 7:如何判断 XCUIElement 是否可见? [英] UITesting Xcode 7: How to tell if XCUIElement is visible?

查看:24
本文介绍了UITesting Xcode 7:如何判断 XCUIElement 是否可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Xcode 7 中使用 UI 测试自动化应用程序.我有一个带有 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?

谢谢

推荐答案

看起来这是一个已知的错误 :-(

Looks like this is a known bug :-(

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

这篇关于UITesting Xcode 7:如何判断 XCUIElement 是否可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆