Sha256: 7232042c8fbedb34b1f8b71964e4ad4345332b01834d7cdfd3c6f621cd9d0691
Contents?: true
Size: 642 Bytes
Versions: 46
Compression:
Stored size: 642 Bytes
Contents
module FWToolkit module Test module UIHelpers 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 end end end World(FWToolkit::Test::UIHelpers)
Version data entries
46 entries across 46 versions & 1 rubygems