【发布时间】:2017-02-19 19:08:38
【问题描述】:
private func acceptPermissionAlert() {
_ = addUIInterruptionMonitor(withDescription: "") { alert -> Bool in
if alert.buttons["Don’t Allow"].exists { //doesnt get here second time
alert.buttons.element(boundBy: 1).tapWhenExists()
return true
}
return false
}
}
这不适用于:
在应用程序的开头,它在接受通知权限时运行良好,但在这里......不起作用。
你知道为什么吗?
【问题讨论】:
标签: ios swift xcode-ui-testing