webdriverio / appium-boilerplate

Boilerplate project to run WebdriverIO tests with Appium to test native applications on iOS and Android
MIT License
440 stars 261 forks source link

fix: workaround for iOS alert issue #303

Closed wswebcreation closed 3 months ago

wswebcreation commented 3 months ago

The Alerts/Permissions for iOS have issues. As of appium-xcuitest-driver V6 the normal getAlert-methods are not working. This is still an issue in the latest driver (7.8.2). The issue is that the alert is only shown in the scope outside of the app, take for example the home screen (com.apple.springboard) or it is not even returned. See:

This PR provides alternatives/workarounds for it and can be shared with the community