Replies: 1 comment
-
So, my solution is to make focusable = true in Modifier by MaterialAutoCompleteTextView. Then you can use KeyEvents to go down/up in the drop-down menu. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone!
So, the question: is it possible to automate item selection in AutoCompleteTextView using uiautomator2 only?
Pls, don't suggest to use espresso driver =)
I've created a small application sample with an AutoCompleteteteTextView element to reproduce the problem. Link on repo. There is a compose app with Material AutoCompleteTextView inside.



The problem is to select the item in the list, 'cause Inspector (with driver uiautomator2) doesn't see the list elements. And it's not working with .PressCode() too.
You can see the app structure on Screenshot_1:
App source (as Inspector sees it):
AutoCompleteTextView element in Inspector:
Stack:
appium/dotnet-client: 2.12.1
uiautomator2: 3.8.0
node: 23.1.0
npm: 10.9.0
jdk: 23.0.1
Appium-Inspector: 2024.9.1
appium-doctor: 1.16.2
Appium.WebDriver: 6.0.0
Beta Was this translation helpful? Give feedback.
All reactions