简体   繁体   English

在没有 appium 驱动程序实例的情况下使用 appium 在 ios 中接受一个弹出对话框

[英]Accept a pop up dialog in ios using appium without having the appium driver instance

I use java to run an appium test, and there is an issue with a pop up notification dialog that appears before I have the instance of the appium driver.我使用 java 运行 appium 测试,并且在我拥有 appium 驱动程序的实例之前出现的弹出通知对话框存在问题。 Because of that I am not able to press the accept button.因此,我无法按下接受按钮。 I read here that I should use: capabilities.setCapability("autoAcceptAlerts",true)我在这里读到我应该使用:capabilities.setCapability("autoAcceptAlerts",true)

this also not working.这也不起作用。

Any idea how can I solve this issue?知道如何解决这个问题吗?

thanks谢谢

在我获得 Appium 驱动程序的实例后立即添加 Thread.sleep(10000) 后问题解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM