How do I press 'Up' arrow in the keyboard
This example demonstrates how to scroll up the page using keyboard "Up" arrow key action.
In the solution shown below, you will see that the scroll up action is performed in HICC by passing "Keys.ARROW_UP" as value to the "sendKeys" command.
Solution:
# | Command | Target | Value |
---|---|---|---|
Scrolling the page to the top | |||
1 | sendKeys | xpath=(//a[contains(text(),'HOME')])[1] |
Keys.ARROW_UP |
Tips, Tricks, Gotchas & Best Practices:
- If Keys.ARROW_UP doesn't work, as an alternative use Keys.HOME or Keys.PAGE_UP.