How to acknowledge system alerts automatically usi

2020-07-07 04:52发布

I use KIF to test the UI for continuous integration. When the app is the first launch on a device (or iOS Simulator), the system will show some alert views for security. How can KIF automatically acknowledge system alerts to prevent test from failure?

标签: ios kif
1条回答
Luminary・发光体
2楼-- · 2020-07-07 05:00

The best way is to use [tester acknowledgeSystemAlert]. It will click the last button in the system alert :)

For more information see this github thread.

查看更多
登录 后发表回答