我已经尝试调用“addUIInterruptionMonitor”应用程序跟踪透明度通知,但它不注册,并为我的下一步失败.任何帮助,对这个对话框的描述是有帮助的,“系统对话框”不工作.
“允许...在其他公司的应用程序和网站上跟踪您的活动”“要求应用程序不要跟踪”“允许”
addUIInterruptionMonitor(withDescription: "System dialog") {
(alert) -> Bool in
if alert.buttons["Cancel"].exists {
alert.buttons["Cancel"].tap()
self.app.activate()
return true
}
return false
}
2条答案
按热度按时间q35jwt9p1#
找到了解决方案,我用的描述是“跟踪使用权限警报”
测试本身也有一个问题,就是等待一个按钮出现,而这个按钮只有在回答这个对话框时才会出现
4dc9hkyq2#
您可以尝试通过
springboard
查找警报。下面的代码为我工作。
希望这个有用。