Enter "Enter key" in Appium Testing
Before using
((AndroidDriver)driver).pressKeyCode(AndroidKeyCode.ENTER);
Set the following desired capabilities
capabilities.setCapability("unicodeKeyboard", "true"); capabilities.setCapability("resetKeyboard", "true");
Send using keyeventEither use:driver.press_keycode(66)
oruseadb shell input keyevent 66
you can try this, it will work with all devices
driver.executeScript("mobile:performEditorAction", ImmutableMap.of("action", "done"));