Answers for "selenium send keys enter input"

1

enter key in selenium

To press ENTER key using Selenium WebDriver, We need to use Selenium 
Enum Keys with its constant ENTER.

driver.findElement(By.xpath("xpath")).sendKeys(Keys.ENTER);
Posted by: Guest on December-05-2020
0

press enter selenium

driver.findElement(By.id("element_id")).sendKeys(Keys.ENTER);
Posted by: Guest on November-26-2020

Browse Popular Code Answers by Language