When running UX tests, we are often interrupted by alerts as shown below. Whats a good way to handle this ? There are two ways you can handle these alerts. You can either use addUIInterruptionMonitor or waitForExistence APIs to handle the alerts. You can use the below diagram to determine what you should be using.