vendor/plugins/form_test_helper/lib/form_test_helper.rb
# Submits the form.  Raises an exception if no submit button is present.
Submits the form.  Raises an exception if no submit button is present.
Submits the form . Raises an exception if no submit button is present .
def submit(opts={})
      msg = "Submit button not found in form"
      selector = 'input[type="submit"], input[type="image"], button[type="submit"]'
      if @submit_value
        msg << " with a value of '#{@submit_value}'"
        selector.gsub!(/\]/, "][value=#{@submit_value}]")
      end
      raise MissingSubmitError, msg unless tag.select(selector).any?
      fields_hash.update(opts)
      submit_without_clicking_button
    end
def submit ( opts = { } ) msg = "Submit button not found in form" selector = 'input[type="submit"], input[type="image"], button[type="submit"]' if @submit_value msg << " with a value of '#{@submit_value}'" selector . gsub! ( / \] / , "][value=#{@submit_value}]" ) end raise MissingSubmitError , msg unless tag . select ( selector ) . any? fields_hash . update ( opts ) submit_without_clicking_button end
Submits the form.
Submits the form .
opts
<not_specific>