SeleniumServer3.0
package base.test.demo;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.*;
public class BaiduTest {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("https://www.baidu.com/");
driver.findElement(By.id("kw")).sendKeys("selenium java");
driver.findElement(By.id("su")).click();
driver.quit();
}
}
勤學如春起之苗,不見其增,日有所長。綴學如磨刀之石,不見其損,日有所虧。