Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用KIF来测试 UI 以实现持续集成。当应用程序在设备(或iOS 模拟器)上首次启动时,系统将显示一些警报视图以确保安全。KIF 如何自动确认系统警报以防止测试失败?
最好的方法是使用[tester acknowledgeSystemAlert]. 它将单击系统警报中的最后一个按钮:)
[tester acknowledgeSystemAlert]
有关更多信息,请参阅此github 线程。