How to handle native iOS Alerts in Appium using Java

Solutions Collect From Internet About “How to handle native iOS Alerts in Appium using Java”

Try adding to your Desired Capabilities ("autoAcceptAlerts",true).
It doesn’t work perfectly but you should try it.

You can also try doing:

driver.findElement(By.name("OK")).click();

Hope this helps.