java-client icon indicating copy to clipboard operation
java-client copied to clipboard

sendKeys not workin on MultiAutoCompleteTextView

Open bapszy opened this issue 4 years ago • 4 comments

Hi,

I need to fill a MultiAutoCompleteTextView input field on Android with a long random generated email address in my tests. Previously we used getKeyboard().pressKey() but now we updated our java-client to 8.2 and it is deprecated. I tried sendKeys and despite visually it is filled the field itself doesn't detect it so I cannot press the next button in our app. As I need to input a long randm generated email address adding the characters one-by one with pressKeyCode is not solution. Can you suggest anything else?

Environment

  • Java client build version or git revision if you use some snapshot: 8.2
  • Appium server version or git revision if you use some snapshot: 1.22
  • Desktop OS/version used to run Appium if necessary: Both Win11 and Mac
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: emulator

bapszy avatar Oct 26 '22 14:10 bapszy

You could try w3c actions or https://github.com/appium/appium-uiautomator2-driver#mobile-type

mykola-mokhnach avatar Oct 26 '22 15:10 mykola-mokhnach

Also the Appium version being used in not maintained anymore. Consider switching to Appium 2

mykola-mokhnach avatar Oct 26 '22 15:10 mykola-mokhnach

Also the Appium version being used in not maintained anymore. Consider switching to Appium 2

Is it fully released now? We made a POC around 2 months ago but it was still in beta

bapszy avatar Oct 26 '22 15:10 bapszy

@mykola-mokhnach thanks for the suggestion the mobile: type method works!

bapszy avatar Nov 08 '22 16:11 bapszy