Selenium: keyboard interaction

Last updated on:

Here is how you perform keyboard interaction in Selenium WebDriver

driver.findElement(By.css("")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.css("")).sendKeys(Keys.ENTER);

And here is how you perform it multiple times

driver.findElement(By.css("")).sendKeys(Keys.ARROW_DOWN, 2);
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.