# How to Auto-Dismiss Location Permission Alerts in iOS Simulator Using Robot Framework Appium?

**URL:** <https://forum.robotframework.org/t/how-to-auto-dismiss-location-permission-alerts-in-ios-simulator-using-robot-framework-appium/9083>\
**Category:** Appium\
**Created:** [16 July 2025 14:09 UTC](https://forum.robotframework.org/t/how-to-auto-dismiss-location-permission-alerts-in-ios-simulator-using-robot-framework-appium/9083 "2025-07-16T14:09:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yullyayuu](https://avatars.discourse-cdn.com/v4/letter/y/ce7236/32.png) [@yullyayuu](https://forum.robotframework.org/u/yullyayuu)\
**Post date:** [16 July 2025 14:09 UTC](https://forum.robotframework.org/t/how-to-auto-dismiss-location-permission-alerts-in-ios-simulator-using-robot-framework-appium/9083/1 "2025-07-16T14:09:42Z")

</div>

I’m facing an issue where I can’t allow the location permission on the simulator. I’ve tried the following method, but it only works on iOS 18:

I’m running tests on iOS Simulator using Appium, and my app triggers the standard location permission: **“Allow Once” / “Allow While Using App” / “Don’t Allow”**.  
I’ve already tried setting these desired capabilities:

- `"autoAcceptAlerts": true`
- `"autoDismissAlerts": true`

But the alert is not dismissed automatically. I also tried locating the alert buttons manually using XPath or accessibility ID, but the elements are not visible or interactable through Appium.

Is there a reliable way to auto-dismiss or bypass this alert during automation on iOS simulators?  
I’m currently using: **Appium 2.19.0** , **iOS 18.4 Simulator** , **Robot Framework 7.3.2**

Any suggestions or best practices would be appreciated.
