Open zastress opened 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.
Click Alert Button
Examples: driver.settings.update({acceptAlertButtonSelector: '**/XCUIElementTypeButton[label=="Allow Once"]'}) driver.switch_to.alert.accept driver.execute_script 'mobile: alert', {action: 'accept', buttonLabel: 'Allow Once'}
driver.settings.update({acceptAlertButtonSelector: '**/XCUIElementTypeButton[
]'}) driver.switch_to.alert.accept
driver.execute_script 'mobile: alert', {action: 'accept', buttonLabel: 'Allow Once'}
Fix created here: https://github.com/serhatbolsu/robotframework-appiumlibrary/pull/420
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'}