I have a test using Cucumber, capybara and selenium driver. This test should go to a form and submit it. The normal text would be
Scenario: Fill form Give
A simple solution:
When /^I submit the form$/ do page.evaluate_script("document.forms[0].submit()") end
Worked for me with capybara-envjs. Should work with selenium as well.