OGeek|极客世界-中国程序员成长平台

标题: ios - 出现模态对话框时,GREYaction 不起作用 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 20:57
标题: ios - 出现模态对话框时,GREYaction 不起作用

我按照提供的说明在我的应用程序中使用 Google Maps API here .一旦我启动该应用程序,就会出现一个权限模式,要求打开位置服务。我在应用程序上运行了使用 EarlGrey 的 UI 测试,我注意到我无法与此模式交互,并且无法执行其他 EarlGrey 操作。

EarlGrey 根本不支持模态还是只与系统模态有关?



Best Answer-推荐答案


EarlGrey 只能根据其features doc 与属于应用进程的模态对话框和警报进行交互。 .

Note: Out-of-process (i.e. system generated) alert views and other modal dialogs that obscure the UI can interfere with this process (Visibility Check / Interactions).

但是,您可以通过一些变通方法来帮助消除这些模式和警报。

关于ios - 出现模态对话框时,GREYaction 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38109810/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4