Class: Chop::Form::Range

Inherits:
Field
  • Object
show all
Defined in:
lib/chop/form.rb

Instance Attribute Summary

Attributes inherited from Field

#field, #label, #path, #session, #value

Instance Method Summary collapse

Methods inherited from Field

candidates, for, from, #get_value

Instance Method Details

#fill_in!Object



225
226
227
# File 'lib/chop/form.rb', line 225

def fill_in!
  session.execute_script("document.getElementById('#{field[:id]}').value = #{value}")
end

#matches?Boolean



221
222
223
# File 'lib/chop/form.rb', line 221

def matches?
  field[:type] == "range"
end