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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With