Search code examples
calabashcalabash-android

Calabash 'send_key_enter' is deprecated, how to replace it?


The perform_action('send_key_enter') is deprecated as other commands in this list.

How can I replace it?


Solution

  • This is can be done with ADB commands.

    system("#{default_device.adb_command} shell input keyevent KEYCODE_ENTER")

    You can see this reply in a question similar to this https://stackoverflow.com/a/25089630/1165581 by lux