How to acknowledge system alerts automatically using KIF test framework?

烂漫一生 提交于 2019-12-05 23:17:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/30028960/how-to-acknowledge-system-alerts-automatically-using-kif-test-framework

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!