android - Is there a way to see the virtual keyboard presented and how can I close it with AndroidViewClient? -
after typing text on field (automatically androidviewclient
) virtual keyboard remains on device screen.
if make dump culebra
script on step not receive views related virtual keyboard receive views can't see since virtual keyboard hides them.
wish androidviewclien
t "see"/distinguish virtual keyboard.
, need how can close virtual keyboard androidviewclient
(what command should use?)
upd included iskeyboardshown()
method checks if virtual keyboard shown, works!
wrote method below.
acts back key event.
def back(self): self.shell('input keyevent keycode_back')
that's looking for!
if want dismiss keyboard:
def dismisskeyboard(self): if self.iskeyboardshown(): self.device.press('keycode_back')
Comments
Post a Comment