Module: Honeydew::DeviceActions
Instance Method Summary
collapse
#adb, #clear_app_data, #clear_directory, #device_endpoint, #dump_window_hierarchy, #forwarding_port, #honeydew_server_file, #honeydew_server_package, #install_app, #is_app_installed?, #is_app_installed_in_data?, #launch_settings, #reboot, #start_automation_server, #start_honeydew_server, #take_screenshot, #terminate_honeydew_server, #uninstall_app
Instance Method Details
11
12
13
|
# File 'lib/honeydew/device_actions.rb', line 11
def click_button button_text
perform_action :click, :text => button_text, :type => 'Button'
end
|
15
16
17
|
# File 'lib/honeydew/device_actions.rb', line 15
def click_button_and_wait button_text
perform_action :click_and_wait_for_new_window, :text => button_text, :type => 'Button'
end
|
#click_check_box(check_box_text) ⇒ Object
19
20
21
|
# File 'lib/honeydew/device_actions.rb', line 19
def click_check_box(check_box_text)
perform_action :click, :text => check_box_text, :type => 'CheckBox'
end
|
#click_checked_text_view(button_text) ⇒ Object
23
24
25
|
# File 'lib/honeydew/device_actions.rb', line 23
def click_checked_text_view button_text
perform_action :click, :text => button_text, :type => 'CheckedTextView'
end
|
#click_element(element_description) ⇒ Object
35
36
37
|
# File 'lib/honeydew/device_actions.rb', line 35
def click_element element_description
perform_action :click, :description => element_description
end
|
#click_element_and_wait(element_description) ⇒ Object
39
40
41
|
# File 'lib/honeydew/device_actions.rb', line 39
def click_element_and_wait element_description
perform_action :click_and_wait_for_new_window, :description => element_description
end
|
#click_text(text) ⇒ Object
27
28
29
|
# File 'lib/honeydew/device_actions.rb', line 27
def click_text text
perform_action :click, :text => text, :type => 'TextView'
end
|
#click_text_and_wait(text) ⇒ Object
31
32
33
|
# File 'lib/honeydew/device_actions.rb', line 31
def click_text_and_wait text
perform_action :click_and_wait_for_new_window, :text => text, :type => 'TextView'
end
|
#fill_in(field_description, options = {with: ''}) ⇒ Object
43
44
45
|
# File 'lib/honeydew/device_actions.rb', line 43
def fill_in field_description, options = {with: ''}
perform_action :set_text, :description => field_description, :text => options[:with]
end
|
#fill_in_by_index(index, options = {with: ''}) ⇒ Object
51
52
53
|
# File 'lib/honeydew/device_actions.rb', line 51
def fill_in_by_index index, options = {with: ''}
perform_action :set_text_by_index, :index => index, :text => options[:with]
end
|
#fill_in_by_label(field_label, options = {with: ''}) ⇒ Object
47
48
49
|
# File 'lib/honeydew/device_actions.rb', line 47
def fill_in_by_label field_label, options = {with: ''}
perform_action :set_text_by_label, :label => field_label, :text => options[:with]
end
|
#launch_application(application_name) ⇒ Object
63
64
65
|
# File 'lib/honeydew/device_actions.rb', line 63
def launch_application application_name
perform_action :launch_app, :appName => application_name
end
|
#launch_home ⇒ Object
55
56
57
|
# File 'lib/honeydew/device_actions.rb', line 55
def launch_home
perform_action :launch_home
end
|
#launch_settings_app(app_name) ⇒ Object
59
60
61
|
# File 'lib/honeydew/device_actions.rb', line 59
def launch_settings_app app_name
perform_action :select_from_apps_list, :appName => app_name
end
|
#launch_settings_item(item_name) ⇒ Object
75
76
77
|
# File 'lib/honeydew/device_actions.rb', line 75
def launch_settings_item item_name
perform_action :select_menu_in_settings, :menuName => item_name
end
|
#long_click_element(element_description) ⇒ Object
67
68
69
|
# File 'lib/honeydew/device_actions.rb', line 67
def long_click_element element_description
perform_action :long_click, :description => element_description
end
|
#long_click_text(element_text) ⇒ Object
71
72
73
|
# File 'lib/honeydew/device_actions.rb', line 71
def long_click_text element_text
perform_action :long_click, :text =>element_text, :type => 'TextView'
end
|
#press_back ⇒ Object
79
80
81
|
# File 'lib/honeydew/device_actions.rb', line 79
def press_back
perform_action :press_back
end
|
#press_enter ⇒ Object
83
84
85
|
# File 'lib/honeydew/device_actions.rb', line 83
def press_enter
perform_action :press_enter
end
|
#scroll_to_text(text, index = '0') ⇒ Object
7
8
9
|
# File 'lib/honeydew/device_actions.rb', line 7
def scroll_to_text text, index = '0'
perform_action :scroll_to_text_by_index, :text => text, :index => index
end
|
#sleep ⇒ Object
95
96
97
|
# File 'lib/honeydew/device_actions.rb', line 95
def sleep
perform_action :sleep
end
|
#unlock ⇒ Object
87
88
89
|
# File 'lib/honeydew/device_actions.rb', line 87
def unlock
perform_action :unlock
end
|
#wake_up ⇒ Object
91
92
93
|
# File 'lib/honeydew/device_actions.rb', line 91
def wake_up
perform_action :wake_up
end
|