How to enter uppercase char from android default keyboard

Hi All,

I want to enter [email protected] from android default keyboard. SendKeys() is not working.
I want to know how can i enter using android default keyboard.

I am using

((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.KEYCODE_A);

how toe enter smallercase

found the solution
driver.executeScript(“mobile: performEditorAction”, ImmutableMap.of(“action”, “A”));

1 Like

Thank you so much @Aish.appium. This is working for me!

For lower case characters, below line worked:
driver.pressKey(new KeyEvent(AndroidKey.S)); // ‘s’
driver.pressKey(new KeyEvent(AndroidKey.H)); // ‘h’

…so on.

For upper case and special characters, the below lines worked:
driver.executeScript(“mobile: performEditorAction”, ImmutableMap.of(“action”, “T”));
driver.executeScript(“mobile: performEditorAction”, ImmutableMap.of(“action”, “!”));