【发布时间】:2018-07-10 09:51:14
【问题描述】:
我正在尝试为刷新控件添加 uitest,但我无法做到,因为我无法使用可访问性标识符 (refreshControl.accessibilityIdentifier = "refreshControlList") 访问刷新控件
launchAppWithArgs(json: OrdersResultJSON.ok, xcuiApp: app)
let table = app.tables["agendaTable"]
DispatchQueue.main.async {
table.otherElements["sectionHeader0"].press(forDuration: 2, thenDragTo: table.otherElements["sectionHeader2"])
}
if !table.otherElements[""].waitForExistence(timeout: 6) {
print("XXX")
}
有什么测试的建议吗?
【问题讨论】:
标签: swift testing integration-testing xcode-ui-testing ui-testing