Aug 22, 2019 in Selenium
Q: How to press ENTER key on text box In Selenium WebDriver?

1 Answer

0 votes
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

0 votes
Aug 22, 2019 in Selenium
...