Typing the Enter/Return key in Selenium
import org.openqa.selenium.Keys WebElement.sendKeys(Keys.RETURN); The import statement is for Java. For other languages, it is maybe different. For example, in Python it is from selenium.webdriver.common.keys import Keys