how to press enter button in selenium button code example
Example: how to press enter 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);