按钮
package com.test.selenium;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class ActionSelenium {
public WebDriver driver;
public void InitDriver(){
System.setProperty("webdriver.firefox.bin","C:\\Program Files\\Mozilla Firefox\\firefox.exe");
driver = new FirefoxDriver();
driver.navigate().to("https://www.imooc.com/user/newlogin");
driver.manage().window().maximize();
}
public void inputBox(){
driver.findElement(By.name(