Module: Platform::Android::Common
Instance Method Summary collapse
Methods included from Emulator
#cleanup_after_emulator, #emulator_running?, #retry_again, #setup_for_android_sauce, #start_emulator, #terminate_emulator, #wait_for_emulator
Methods included from OS
Methods included from Device
#start_android_device, #terminate_android_device, #wait_for_android_device
Instance Method Details
#back_button ⇒ Object
26 27 28 |
# File 'lib/mobmanager/mobile/platform/android/common.rb', line 26 def %x[adb shell input keyevent KEYCODE_BACK] end |
#prepare_android_phone(settings = nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/mobmanager/mobile/platform/android/common.rb', line 11 def prepare_android_phone(settings = nil) if ENV['ANDROID_PHONE'] == 'emulator' if ENV['TARGET'] == 'sauce' start_emulator(settings) else terminate_emulator start_emulator online = wait_for_emulator retry_again unless online end else start_android_device end end |