Categories

1 Answer

Aug 22, 2019
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);

1

driver.findElement(By.xpath("xpath")).sendKeys(Keys.ENTER);
Click here to read more about Selenium
Click here to read more about Insurance

Related questions

Madanswer
Aug 19, 2019 in Selenium
Aug 22, 2019 in Selenium
Aug 22, 2019 in Selenium
...