📜  在 selenium 中输入密钥 - 无论代码示例

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

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