would like to use your current location"?-6ren"> would like to use your current location"?-我正在使用 KIF 进行 GUI 测试,看来我们无法在模拟器中自动单击 would like to use your current location 中的确定按钮。首次运行应用程序时出现的警报。有-6ren">
gpt4 book ai didi

ios - KIF测试时如何自动点击OK响应 " would like to use your current location"?

转载 作者:可可西里 更新时间:2023-11-01 05:36:51 25 4
gpt4 key购买 nike

我正在使用 KIF 进行 GUI 测试,看来我们无法在模拟器中自动单击 <app> would like to use your current location 中的确定按钮。首次运行应用程序时出现的警报。有没有办法配置模拟器或应用程序来绕过该弹出窗口?

最佳答案

A recent addition KIF 添加 -acknowledgeSystemAlert 到测试运行器。这可以在模拟器上运行时用于确认位置服务授权对话框。当请求访问用户的照片库时,它可以以相同的方式使用。

关于ios - KIF测试时如何自动点击OK响应 "<app> would like to use your current location"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15558301/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com