title: Capybara - Submit a form without button
body: <p>I am trying to submit a form without button using just Capybara and Rspec (no Cucumber or Selenium, I know there is already a question about that).</p>
  
  <p>I've seen there is a gist to add a method to submit a form without button: </p>
  
  <pre><code>module SubmitRackTestFormWithoutButton
    def submit_form!
      Capybara::RackTest::Form.new(driver, form).submit({})
    end
  end
  Capybara::RackTest::Node.send :include, SubmitRackTestFormWithoutButton
  </code></pre>
  
  <p><a href="https://gist.github.com/989533">https://gist.github.com/989533</a>, but I've not gotten it to work and I left a comment on it:</p>
  
  <blockquote>
    <p>I get undefined method `submit_form!' for #Capybara::Node::Element:...
    actually by "Capybara::RackTest::Node.send :include,
    SubmitRackTestFormWithoutButton" the method submit_form! is added to
    the Node (not to the Element), but find return an Element</p>
  </blockquote>
  
  <p>Do you have some idea to work out that gist, or some other solution to submit a form without button ?</p>
  
  <p>Thanks</p>