maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Support unicode input

Open dmitry-zaitsev opened this issue 2 years ago • 14 comments

At the moment Maestro does not allow to input unicode characters, so commands like this one won't work:

- inputText: Wünderbar

dmitry-zaitsev avatar Sep 08 '22 11:09 dmitry-zaitsev

On iOS, the issue is in the fact that idb inputs text by sending key events to the device, instead of passing the text as a whole.

dmitry-zaitsev avatar Sep 08 '22 11:09 dmitry-zaitsev

On Android, the issue is in the fact that adb shell input text {text} does not work with unicode.

We have tried to solve the problem in following ways:

  • Use UiAutomator directly. This allows for input of unicode, but adds a weird limitation - it is not possible to append text input to a field due to the fact that if a field has a hint, it will be counted as a text.
  • Use ADBKeyboard. While it looks promising, it also requires user to enable the keyboard in Android settings. We would like to keep Maestro configuration as simple as possible, so this is a no-go.

dmitry-zaitsev avatar Sep 08 '22 12:09 dmitry-zaitsev

Hi 👋 Any update on the subject ? The iOS issue makes it impossible to run tests when using any non-QWERTY keyboard layout.

Thank you for your time

mmeven avatar Dec 13 '22 09:12 mmeven

Related iOS issue: The input don't handle different keyboard layout. I do use QWERTY, but with Norwegian layout. See image, _ and ? are swapped

Text editor vs actual simulator input: image

edit: By reading #107 I see that this is already mentioned by others.

langtind avatar Dec 27 '22 08:12 langtind

Hi @dmitry-zaitsev,

Do you have any update on this issue? Or any workaround other that switching the mac keyboard to QWERTY?

Thanks 🙏

Martin

marnoux-luna avatar Jan 02 '23 16:01 marnoux-luna

Unicode is now supported on iOS. Android is still work in progress

dmitry-zaitsev avatar Jan 30 '23 13:01 dmitry-zaitsev

Unicode is now supported on iOS. Android is still work in progress

I have yet to get Maestro to type out a full email address. Are you sure it's fixed?

dragonfire1119 avatar Jan 31 '23 18:01 dragonfire1119

Hi, When will Unicode be supported on Android? Is it already in the plans?

Thanks.

openerserver avatar Mar 15 '23 11:03 openerserver

I'm interested to know the status of this too. Is there a way to interact with the keyboard itself as a workaround?

ChristianSteffensen avatar Jun 19 '23 14:06 ChristianSteffensen

I'm interested to know the status of this too. Is there a way to interact with the keyboard itself as a workaround?

I had to just go back to using https://wix.github.io/Detox/ :(

It skips letters when you type, which throws off the whole test.

dragonfire1119 avatar Jun 19 '23 14:06 dragonfire1119

i am interested to know the status of this also - unicode suppprt for android. struggling for this.

NehaKharbanda99 avatar Nov 30 '23 15:11 NehaKharbanda99

Team , is there any update for the "Unicode character" for Android. This will help alot.

aliaamonier avatar Jan 01 '24 09:01 aliaamonier

  • Use UiAutomator directly. This allows for input of unicode, but adds a weird limitation - it is not possible to append text input to a field due to the fact that if a field has a hint, it will be counted as a text.

Probably, this limitation is not as bad as complete absence of Unicode

Do you have any plans on supporting android unicode? Is it possible to move forward with UiAutomator option?

ignatovSA avatar Jan 16 '24 23:01 ignatovSA

Any updates for Android? @dmitry-zaitsev

art-ylem avatar Apr 05 '24 10:04 art-ylem