Class: Chop::Form::ViaJavascript
Instance Attribute Summary
Attributes inherited from Field
#field, #label, #path, #session, #value
Instance Method Summary collapse
Methods inherited from Field
candidates, combined_css_selector, css_selector, #diff_value, for, from, #get_value, #label_text, #should_include_in_diff?, #to_diff_row
Instance Method Details
#fill_in! ⇒ Object
328 329 330 |
# File 'lib/chop/form.rb', line 328 def fill_in! session.execute_script("document.getElementById('#{field[:id]}').value = '#{value}'") end |
#matches? ⇒ Boolean
324 325 326 |
# File 'lib/chop/form.rb', line 324 def matches? %w[time week month range].include?(field[:type]) end |