Class: Frank::Console

Inherits:
Object
  • Object
show all
Includes:
Frank::Cucumber::FrankHelper, Frank::Cucumber::FrankMacHelper, Frank::Cucumber::Launcher
Defined in:
lib/frank-cucumber/console.rb

Constant Summary

Constants included from Frank::Cucumber::WaitHelper

Frank::Cucumber::WaitHelper::POLL_SLEEP, Frank::Cucumber::WaitHelper::TIMEOUT

Instance Attribute Summary

Attributes included from Frank::Cucumber::Launcher

#application_path, #sdk, #version

Instance Method Summary collapse

Methods included from Frank::Cucumber::Launcher

#enforce, #launch_app, #simulator_client, #simulator_direct_client

Methods included from Frank::Cucumber::FrankMacHelper

#bring_to_front, #cancel, #click, #collapse_row, #confirm, #decrement_value, #delete_value, #double_click, #expand_row, #increment_value, #perform_action_on_selector, #pick, #row_is_expanded, #show_menu, #simulate_click

Methods included from Frank::Cucumber::FrankHelper

#accessibility_frame, #app_exec, #base_server_url, #check_element_does_not_exist, #check_element_does_not_exist_or_is_not_visible, #check_element_exists, #check_element_exists_and_is_visible, #check_view_with_mark_does_not_exist, #check_view_with_mark_exists, #drag_with_initial_delay, #element_exists, #element_is_not_hidden, #fill_in, #frank_server, #frankly_current_orientation, #frankly_deregister_notification, #frankly_device_name, #frankly_dump, #frankly_dump_notification, #frankly_is_accessibility_enabled, #frankly_map, #frankly_notification_operation, #frankly_oriented_landscape?, #frankly_oriented_portrait?, #frankly_ping, #frankly_register_notification, #frankly_screenshot, #frankly_set_orientation, #get_selector_quote, #is_ipad, #is_iphone, #is_mac, #selector_engine, test_on_physical_device_via_bonjour, #test_on_physical_device_with_ip, #touch, use_shelley_from_now_on, #view_with_mark_exists, #wait_for_element_to_exist, #wait_for_element_to_exist_and_then_touch_it, #wait_for_element_to_not_exist, #wait_for_frank_to_come_up, #wait_for_nothing_to_be_animating

Methods included from Frank::Cucumber::LocationHelper

#set_location

Methods included from Frank::Cucumber::HostScripting

#press_home_on_simulator, #quit_double_simulator, #quit_simulator, #rotate_simulator_left, #rotate_simulator_right, #shake_simulator, #simulate_hardware_keyboard, #simulate_memory_warning, #simulator_hardware_menu_press, #simulator_reset_data, #start_recording, #stop_recording, #toggle_call_status_bar

Methods included from Frank::Cucumber::GestureHelper

#double_tap, #double_tap_point, #drag_thumb_in_slider, #drag_thumb_in_slider_with_default_duration, #tap_and_hold, #tap_and_hold_point

Methods included from Frank::Cucumber::ScrollHelper

#scroll_table_view, #scroll_view_to_bottom, #scroll_view_to_position, #scroll_view_to_top

Methods included from Frank::Cucumber::KeyboardHelper

#type_into_keyboard, #type_shortcut

Methods included from Frank::Cucumber::WaitHelper

wait_until

Instance Method Details

#check_for_running_appObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/frank-cucumber/console.rb', line 11

def check_for_running_app
  print 'connecting to app...'
  begin
    Timeout::timeout(5) do
      until frankly_ping
        print '.'
        sleep 0.2
      end
    end
  rescue Timeout::Error
    puts ' failed to connect.'
    return false
  end
  puts ' connected'
  return true
end