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

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

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

 

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

answered Feb 16, 2015 by KeeshaGolden (327 points)
selected Mar 7 by stbadmin
...