How do I Press 'Enter' in the Keyboard
This example demonstrates pressing 'Enter' key in the keyboard.
In the solution shown below, you will see that "Enter" action is performed on "Calculate" button in HICC by passing "Keys.ENTER" as value to the "sendKeys" command.
Solution:
# | Command | Target | Value |
---|---|---|---|
Performing "ENTER" action on "Zip code" input field | |||
1 | sendKeys |
id=txt_ZipCode | Keys.ENTER |
Tips, Tricks, Gotchas & Best Practices:
- If Keys.ENTER action doesn't work, as an alternative use sendKeysEnter or click command.