Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

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

Solved 1 Answers 3003 Views Selenium
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?

1 Answer

0
Best answer
0

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

 

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

answered by (327 points)
selected by

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.
...