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

AutoComplete Elements are not recognized by uiautomator2 #757

Open
Dor-bl opened this issue Mar 27, 2024 · 3 comments
Open

AutoComplete Elements are not recognized by uiautomator2 #757

Dor-bl opened this issue Mar 27, 2024 · 3 comments

Comments

@Dor-bl
Copy link
Contributor

Dor-bl commented Mar 27, 2024

Only for Android Platform, Appium can't detect Autocomplete Elements. (on iOS all work as expected)
Even when using the below caps, issue persist:

 "appium:enableMultiWindows": true,
 "appium:enableTopmostWindowFromActivePackage": true

Any other approach that might work other than using estimated element position?

Found some related issues that were reported on Appium discuss:
https://discuss.appium.io/t/cant-access-drowpdown-spinner-item/33334/3
https://discuss.appium.io/t/how-to-select-values-from-autocomplete-dropdown-in-android-using-javascript-mocha/15190/10
https://discuss.appium.io/t/how-to-click-on-autocompletetextview/1488
https://discuss.appium.io/t/android-cant-scroll-to-a-mobileelement-in-a-dropdown-when-the-dropdown-appears-above-its-autocompletetextview/36154

@Dor-bl Dor-bl changed the title Autocomplete Elements are not recognized by uiautomator2 AutoComplete Elements are not recognized by uiautomator2 Mar 27, 2024
@mykola-mokhnach
Copy link
Contributor

If the control itself is not accessible then there is no way it could be shown in the page source

@Dor-bl
Copy link
Contributor Author

Dor-bl commented Mar 28, 2024

But as seen in the image, the control is accessible.
but still, the dropdown view is not recognized by the Appium inspector and is not visible among App source views tree elements.
image

@KazuCocoa
Copy link
Member

Could MaterialAutoCompleteTextView implementation work instead? https://developer.android.com/reference/com/google/android/material/textfield/MaterialAutoCompleteTextView

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

3 participants