嗨,我是一个完整的新手自学UI测试。我正在开发iOS便笺应用程序并尝试通过创建草稿备注然后立即删除它来测试草稿备注的删除。在创建笔记时,您可以选择一个选项列表,但我只想默认选择第一个,并且我正在努力这样做。到目前为止我所拥有的是:
let app = XCUIApplication()
let tablesQuery = app.tables
_ = self.expectationForPredicate(
NSPredicate(format: "self.count = 1"),
evaluatedWithObject: tablesQuery,
handler: nil)
let cells = tablesQuery.cells
let firstCell = cells.elementBoundByIndex(0)
firstCell.tap() // my attempt
在最后一行代码中,我收到此错误:
UI Testing Failure - App failed to quiesce within 60s
我无法在网上找到任何可以帮助我解决此错误的内容。 我对语法并不是很了解,并且正在寻找一些指导。谢谢。