📜  如何在 selenium python 代码示例中按 enter

📅  最后修改于: 2022-03-11 14:46:19.590000             🧑  作者: Mango

代码示例4
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);