Unable to locate iOS's system related native app popup element in mobile devices

Unable to locate and click below ‘Allow’ button. Below xpath is identified in Appium inspector
Xpath = //XCUIElementTypeButton[@name=“Allow”]

Screenshot 2024-04-20 at 4.29.51 PM

Recently upgraded robot framework, appium, wda, after that I’m unable to locate os related native elements

WDA - v8.5.2
Appium - v2.4.1 / v2.5.3 / v2.0.0-beta.71
Robot framework - v7.0
Xcode - v15.3
mac OS - Sonoma v14.4.1
Devices - iPhone 11, 12

Note: Working fine previously after updating all above(ada, Appium, robot, Xcode), this issue occurs

2 Likes

I’ve been experiencing this same issue. I’d be curious to know if you found a solution. Otherwise, I hope this reply boosts the visibility of this problem and achieves a resolution.

Hello,
Im dealing with this issue right now and i found that all the iOS system messages and alerts are managed by com.apple.springboard. You can identify it easily through Appium Inspector at the time that a popup message appears, the active application is springboard and you can inspect the appropriate elements.
The problem with that is when running a robot script and appiun cant identify the XML elements because of the springboard presence.
Appium troubleshooting page suggests the use of mobile commands but i dont know how to use them in my robot script. Interact with dialogs managed by com.apple.springboard
Any idea on how to handle these elements?