dudu1791 dudu1791 - 1 year ago 169
Android Question

How to dismiss the keyboard in appium using Java?

This code just aims to find the textbox and send some text to it.
When it does that the keyboard appears on the android device.How to dismiss it after the sendKeys.

public static void test_demo() throws Exception {
WebElement element = driver.findElement(By.id("mytextfield"));
//how do I dismiss keyboard which appears on my android device after sendKeys?

Answer Source

driver.hideKeyboard() will only work with AppiumDriver. I am using java-client-2.2.0.jar that contains this capability.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download