I’m running Selenium automation tests on macOS using Google Chrome, and I keep getting the OS-level popup:
“Use a saved passkey from iCloud Keychain”
This popup blocks the UI and causes my tests to fail. Since it’s a macOS system dialog, Selenium is unable to interact with or dismiss it.
What I’ve tried
ChromeOptions:
options.addArguments("--disable-webauthn");
options.addArguments("--disable-features=WebAuthentication,WebAuthnExtensions,WebAuthenticationUI");
options.addArguments("--disable-web-security");
options.addArguments("--incognito");
Chrome settings:
- Disabled password saving
- Disabled auto sign-in
- Disabled passkeys (where available)
Chrome flags:
- Disabled Web Authentication API
- Disabled Passkey-related flags
Despite this, the popup still appears for sites like Amazon / Flipkart.
Environment:
- macOS (Apple Silicon)
- Chrome (latest stable)
- Selenium + Java
- ChromeDriver
Problem:
Since the popup is triggered by macOS iCloud Keychain, Selenium cannot detect or handle it. I’m looking for a reliable way to block or prevent this popup during automation, preferably without manual interaction.