I need to press the keyboard enter key in the cucumber tests. I used the selenium web driver. Please tell me how to do this?
You can use keys and ActionBuilder :
page.driver.browser.key_down(:enter).key_up(:enter).perform
or send_keys :
find(:id, 'my_id').native.send_keys(:enter)
Capybara does not currently have its own keystroke API.