What is the proper way to send accented characters?

  • Appium 1.3.6
  • Java-client 2.1.0
  • Android
  • Both Emulator/Real Device

So I saw there is an option to allow accented characters, with unicodeKeyboard.

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("unicodeKeyboard", true);

My problem is : when I allow this option on a specific test (activate “Appium Android Input Manager”), it creates a bug with Phone Number, sendKeys(PhoneNumber) randomly delete 1 or 2 numbers, making my test crash.

I need this option enabled because without it; appium can’t send accented characters in textField.

I would like to know what is the best way to use it, and if there was a way to allow accented characters just for a specific textField (with capabilities’ object accessible) . Something like :

capabilites.setCapability("unicodeKeyboard", true);
sendKeys("Texte", "à é ù è ô");
capabilities.setCapability("resetKeyboard", true);

So during test and not in setUp.
I tried but it did nothing.

And if I try :

capabilities.setCapability("unicodeKeyboard", true);
capabilities.setCapability("resetKeyboard", true); 

The reset doesn’t work in the current session.

1 Like

Up, I’m using UiSelectors.
And if I’ve well understood the resetKeyBoard, it resets keyboard state at end of session.
I don’t think the log will help, because it just displays the numbers to send.

I have same issue. Anyone can help us please?