4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/fwtoolkit/test/ui_helper.rb', line 4
def fwt_set_textfield_text(text_field_mark, text_to_type)
text_field_selector = "textField marked:'#{text_field_mark}'"
if element_exists(text_field_selector)
touch( text_field_selector )
else
raise "Could not find [#{text_field_mark}], it does not exist."
end
frankly_map( text_field_selector, 'becomeFirstResponder' )
frankly_map( text_field_selector, 'setText:', text_to_type )
frankly_map( text_field_selector, 'endEditing:', true )
end
|