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();
}

}

上一篇:PyCharm导入tensorflow包报错的问题


下一篇:Ubuntu下APACHE HTTPS安装和配置