On iOS 15 app automation test, there is a pop-up that I need to click on "YES," but the pop-up vanishes immediately

On iOS 15 app automation test, there is a pop-up that I need to click on “YES,” but the pop-up vanishes immediately. How do I resolve this?

Hi Ian,

On iOS 15, the “autoAcceptAlerts” capability is true by default due to which the pop-up is immediately closed as soon as it appears. You can pass the capability "autoAcceptAlerts": false and it will resolve the issue.