Sha256: 40714c533b5e1280a20e1ab32c341611e515781e312c4ae328b4705b1dc1a5bd
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
# @todo: Add not about this class being easily abused module Calabash module Android module PhysicalButtons def press_button(key) Device.default.perform_action('press_key', key) true end def press_back_button press_button('KEYCODE_BACK') end def press_menu_button press_button('KEYCODE_MENU') end def press_down_button press_button('KEYCODE_DPAD_DOWN') end def press_up_button press_button('KEYCODE_DPAD_UP') end def press_left_button press_button('KEYCODE_DPAD_LEFT') end def press_right_button press_button('KEYCODE_DPAD_RIGHT') end def press_enter_button press_button('KEYCODE_ENTER') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
calabash-1.9.9.pre2 | lib/calabash/android/physical_buttons.rb |
calabash-1.9.9.pre1 | lib/calabash/android/physical_buttons.rb |