Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zastress opened this issue Mar 13, 2024 · 1 comment
Open

Comments

@zastress
Copy link
Contributor

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
Copy link
Contributor Author

Fix created here: #420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant