Keyboard in physical device isn't always hidden in Android while using appium

When i want to hide keyboard, (because if i don’t hide it when i click into a button under keyboard a number from keyboard is pressed instead of the confirm button for example) some times it’s hidden ok by the command driver.hidekeyboard(); and other times** it’s hidden automatically,**
other times it tells me :** “An unknown server-side error occurred while processing the command. (Original error: Soft keyboard not present, cannot hide keyboard)”**

i am facing the same issue…Can anybody help us on how to check the keyboard is open or not

1 Like

I am also facing the same issue… Test is so flacky. Sometimes it works and sometimes not…

Error: 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: 122 milliseconds

1 Like