天天看点

selenium(环境搭建)需要下载的

1、下载Eclipse

2、下载JDK1.8

3、配置java环境变量

4、下载selenium-java-3.X的jar包

5、给项目里导入jar包

6、下载对应的chromedriver版本,并在代码中配置环境变量;

System.setProperty("webdriver.chrome.driver","地址")
           

火狐各版本浏览器

http://ftp.mozilla.org/pub/firefox/releases/

java包

http://selenium-release.storage.googleapis.com/index.html

chromedriver

https://npm.taobao.org/mirrors/chromedriver/

geckodriver下载地址:

https://github.com/mozilla/geckodriver/releases

Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. 
The latest version can be downloaded
           

下载geckodriver,解决

selenium(环境搭建)需要下载的

继续阅读