lib/marty_rspec/util.rb
# Field edit/Key in Helpers
Field edit/Key in Helpers
Field edit / Key in Helpers
def type_in(type_s, el, args = {})
      extra_keys = args[:extra_keys] || [:enter]
      el = find_by_id("#{el}") if el.is_a? String
      el.native.clear()
      type_s.each_char do |key|
        el.native.send_keys(key)
      end
      el.send_keys(extra_keys)
    end
def type_in ( type_s , el , args = { } ) extra_keys = args [ :extra_keys ] || [ :enter ] el = find_by_id ( "#{el}" ) if el . is_a? String el . native . clear ( ) type_s . each_char do | key | el . native . send_keys ( key ) end el . send_keys ( extra_keys ) end
Field edit/Key in Helpers
Field edit / Key in Helpers
type_s
<not_specific>
el
<not_specific>
args
<not_specific>