1. 文本框Textbox
// Find the username input element by its name
WebElement username = driver.findElement(By.name("username"));
// Enter the user name: jill
username.clear();
username.sendKeys("jill");
// Find the password input element by its name
WebElement password = driver.findElement(By.name("password"));
// Enter the password:123456
password.clear();
password.sendKeys("123456");
2. 按钮Button
// Click the Login button by class