from selenium.webdriver.common.keys import Keys driver.find_element_by_name("search").send_keys(Keys.ENTER)