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

Version Path
fwtoolkit-0.9.3 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.9.2 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.9.1 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.9.0 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.7 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.6 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.5 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.4 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.3 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.2 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.1 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.8.0 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.7.3 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.7.2 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.7.1 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.7.0 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.6.6 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.6.5 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.6.4 lib/fwtoolkit/test/ui_helper.rb
fwtoolkit-0.6.3 lib/fwtoolkit/test/ui_helper.rb