power_settings_new

How to use "Down Arrow key" in Selenium WebDriver Java.

by
asked
0 like 0 dislike
3.2k views
0 1
I am using Selenim Java. I need to enter value into textbox and press down arrow to to select sugesstions and then press enter button.

So, my question is how to press Down Arrow key followed by "Enter" button?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (327 points)
selected by
0 like 0 dislike
 
Best answer
0

You can try using Keys enum from Selenium org.openqa.selenium

 

driver.findElement(wayToIdentifyElement).sendKeys(org.openqa.selenium.Keys.ARROW_DOWN);

Related questions

add
...