Difference between return and enter keys in Selenium

selenium, selenium-webdriver

Solution

Normally these keys are interchangeable. I believe the original implementation the Keys. Enter was the enter key on the number pad and the Keys.

Return was the one next to the letters. It's also fine to use these keys in Selenium testing, if it matches a user flow or requirement, which is the goal of testing through the UI.

Problem

What is the difference between return and enter keys in Selenium? This related SO answer and the provided link state that they are different. I also noticed that enter key will send an HTML form while return doesn't when using Firefox 24.2.

Original source

Related problems