iOS 14's alert dialog boxes can't be dismissed

It seems the commands to dismiss an alert box doesn’t work on iOS 14 (I’m using Appium 18.3).

specifially self._driver.switch_to.alert.dismiss() works but actually accepts the dialog (has been doing this since iOS 13), whilst self._driver.switch_to.alert.accept() used to do the opposite but now doesn’t work at all!

Apple changed the sequence of buttons in some system dialogs recently. Use either acceptAlertButtonSelector/dismissAlertButtonSelector settings to customize this behaviour or mobile: alert endpoint

1 Like