Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Soft keyboard not present, cannot hide keyboard - Appium android

I am getting following exception:

 org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (Original error: Soft keyboard not present, cannot hide keyboard) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 368 milliseconds

I am using driver.hideKeyboard() to hide soft input keyboard that is open on the screen.
How to ensure that keyboard is open before hiding it? OR any other workaround?

like image 814
AnswerDroid Avatar asked Jan 27 '16 07:01

AnswerDroid


1 Answers

I also get this error, i correct it by using the following code in the setUp method :

capabilities.setCapability("unicodeKeyboard", true);
capabilities.setCapability("resetKeyboard", true);

You can check answers here : Keyboard in Android physical device isn’t always hidden while using Appium

like image 118
Emna Ayadi Avatar answered Sep 19 '22 09:09

Emna Ayadi