serhatbolsu / robotframework-appiumlibrary

AppiumLibrary is an appium testing library for RobotFramework
Apache License 2.0
403 stars 291 forks source link

Unable to interract with alerts on iOS simulator since xcuitest v6 #419

Open zastress opened 8 months ago

zastress commented 8 months ago

Appium recently changed the way xcuitest driver interracts with iOS devices and we are unable to click alert buttons from the app.

The change is documented here:

I believe the solution is to create a keyword called Click Alert Button to only handle alerts.

Examples: driver.settings.update({acceptAlertButtonSelector: '**/XCUIElementTypeButton[label=="Allow Once"]'}) driver.switch_to.alert.accept driver.execute_script 'mobile: alert', {action: 'accept', buttonLabel: 'Allow Once'}

zastress commented 8 months ago

Fix created here: https://github.com/serhatbolsu/robotframework-appiumlibrary/pull/420