Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
8.2k views
in Selenium by
recategorized by
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 like 0 dislike
by The go-to Tester (327 points)
selected by
 
Best answer

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

 

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


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...