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

"appium:autoDismissAlerts" not recognized by AndroidUiautomator2Driver on Debian #868

Closed
pradeipp opened this issue Feb 26, 2025 · 4 comments

Comments

@pradeipp
Copy link

Hi, as mentioned in the title the uiautomator2 driver is not taking the autoDismissAlerts capability.

Here's the exact message:

[AndroidUiautomator2Driver@d1ad] The following provided capabilities were not recognized by this driver:
[AndroidUiautomator2Driver@d1ad]   autoDismissAlerts

Here's the capabilities list for reference(as picked from the logs):

[AndroidUiautomator2Driver@d1ad] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "Android",
    "appium:automationName": "uiautomator2",
    "appium:app": "/home/user1/application.apk",
    "appium:autoDismissAlerts": true,
    "appium:autoGrantPermissions": true,
    "appium:udid": "emulator-5612"
  },
  "firstMatch": [
    {}
  ]
}

OS: Debian 11
Appium version: 2.16.2
Uiautomator2 driver version: 4.0.3

Please advise, I couldn't find any discussion regarding this on the internet.

@mykola-mokhnach
Copy link
Contributor

Hi, as mentioned in the title the uiautomator2 driver is not taking the autoDismissAlerts capability.

This is expected. This driver has never been supporting such capability.

@pradeipp
Copy link
Author

Hi @mykola-mokhnach, that's interesting.. so there's no top level way to 'auto-dismiss' all alerts on android? and that we have to dismiss them one by one deterministically?

@mykola-mokhnach
Copy link
Contributor

yes, that's correct

@pradeipp
Copy link
Author

great, thanks a lot @mykola-mokhnach I'll close the ticket

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

2 participants