Search code examples
androidadbcalabash-android

adb- Is there a way to simulate IME_ACTION _DONE?


Can you simulate IME_ACTION_DONE commands on the adb shell?

I have used this but it does not work

adb shell input ime IME_ACTION_DONE

I am trying to use this system command on my calabash test by running the above command using the system function


Solution

  • Use the Calabash-Android method press_user_action_button to simulate these interactions. Notice that your application should still handle enter keys (e.g. press_enter_button) as some phones will have a physical or bluetooth keyboard connected.