【发布时间】:2017-10-25 16:19:10
【问题描述】:
我正在使用 Xcode 8.3 中的 XCTest 编写 UI 自动化测试。我可以访问UIWebView 中的 HTML 复选框,例如:
self.app.otherElements["webview_id"].switches[@"0"]
但是如何检查复选框当前是否被选中? .selected 属性总是返回 0,我还没有找到任何其他似乎适合的属性。
【问题讨论】:
标签: ios xcode webview ui-automation xctest