in Selenium by
Q:
How to press ENTER key on text box In Selenium WebDriver?

▼ Show 1 Answer

0 votes
by
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);
Selenium
Learn More with Madanswer

Related questions

0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
...