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
With the capybara Selenium driver you can do something like this:
within(:xpath, "//form[@id='the_form']") do locate(:xpath, "//input[@name='the_input']").set(value) locate(:xpath, "//input[@name='the_input']").node.send_keys(:return) end