Sha256: ab1573c8425df3c38b4e07cef148c614f863cac66c66d705b574308b6ee74726
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
module Calabash module Android # @!visibility private module PhysicalButtons # @todo: Add note about this class being easily abused 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calabash-1.9.9.pre3 | lib/calabash/android/physical_buttons.rb |