How to verify Keyboard is opened or not in the screen

Hi All,

Anyone knows How to verify Keyboard is opened or not in the screen.That means if Keyboard opened i have to hide or else have to open keyboard.

Kindly help me .

Thanks in advance

There appears to be a keyboard_exists? method (in Ruby).

Thanks for the quick response willosser.I need method in java.

I don’t see the method in Java. You can try searching the appium/java-client on github and file a gist if you can’t find it.

Thanks willosser.I will check

We can use androidDriver.getKeyboard(),to check wether keyboard is present or not.