Class: Chop::Form::Range
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
210 211 212 |
# File 'lib/chop/form.rb', line 210 def fill_in! session.execute_script("document.getElementById('#{field[:id]}').value = #{value}") end |
#matches? ⇒ Boolean
206 207 208 |
# File 'lib/chop/form.rb', line 206 def matches? field[:type] == "range" end |