Hi All,
I want to enter Appium@1234 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â, â!â));