After typing a text on some field (automatically with AndroidViewClient
) the virtual keyboard remains on my device screen.
If I make a dump with the culebra
script on this step I do not receive views related to this virtual keyboard but I receive views that I currently can't really see since the virtual keyboard hides them.
I wish AndroidViewClien
t "see"/distinguish the virtual keyboard.
And I need a help how can I close the virtual keyboard with the AndroidViewClient
(what command should I use?)
UPD
The included isKeyboardShown()
method checks if Virtual Keyboard is shown, it works!
I wrote the method below.
It acts as a BACK key event.
def back(self):
self.shell('input keyevent KEYCODE_BACK')
That's all I was looking for!
If you want to dismiss the keyboard:
def dismissKeyboard(self):
if self.isKeyboardShown():
self.device.press('KEYCODE_BACK')