sendKeys() android special characters

Hello.

I’m currently trying to use the sendKeys() method to input some special characters to a field (€%&/ åäö) etc.
Problem is I can’t, when I do “sendKeys(”%%&") the field is just left blank, if I input “abcde” instead there is no problem.

Selenium standalone server = 3.3.1
Java client = 4.1.2
testng 6.11
android.driver

Doing all my tests on a android emulator (I can manually input the special characters in the emulator, just not automate it with sendKeys method)

Appreciate all help

enable unicode support with driver start.

capabilities.setCapability("unicodeKeyboard", "true");
// or
capabilities.setCapability(AndroidMobileCapabilityType.UNICODE_KEYBOARD, "true");
2 Likes