android - How to dismiss the keyboard in appium using Java? -


This code is just to find text boxes and send some text to it. When this happens that the keyboard appears on Android device. How to dismiss it after dismissing it.

  @Test Public static zero test_demo () throws an exception {WebElement element = driver.findElement (by ID ("mytextfield")); Element.sendKeys ("test"); // How can I dismiss the keyboard that appears on my Android device after the sendkeys? }    

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

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -