This environment can be set up waste my great effort, under summary, there are people who need help at the way ha ha
Environment to build step
First, install the JDK
JDK java software toolkit is installed in the following order:
1.JDK Download the official website: official website ,
I downloaded from the official website Well
JDK and Eclipse latest installation package link: https: //pan.baidu.com/s/1inHFWdFqAaiBSK2VfG3JRA extraction code: fqod
Direct download
2. Configure Environment Variables
You can see very detailed steps to configure the environment variables detailed steps, be sure to read this there where noted, written in great detail
Note: JAVA_HOME must write on the installation path, see figure below, find java.exe
In the current address bar enter cmd carriage return
Dos javac carriage return input window, i.e., the installation was successful appears at FIG.
Second, install Eclipse
1. Download: official website https://www.eclipse.org/downloads/
Slow need to download special agent recommended the following Baidu network disk
Click to download
Or use the JDK and Eclipse latest installation package link: https: //pan.baidu.com/s/1inHFWdFqAaiBSK2VfG3JRA extraction code: fqod
2. Double-click the exe file to run
Third, the installation Selenium
1. Download : official website http://docs.seleniumhq.org/download/
Or click on this page http://selenium-release.storage.googleapis.com/index.html
Click to find the latest version 3.9
Click to download
2. After downloading interface, followed by
Fourth, the installation FireFoxdiver
1.下载最新的FireFox(一定要默认安装!!!),去官网下就好了
2.下载火狐浏览器驱动下载地址
五、Eclipse导入selenium的jar包
1.新建一个java工程
2.进入新建工程页面
3.添加selenium的jar包
4.导入后点击确定
至此环境搭建完毕!已经开始自动化测试了
参考博客:
https://blog.csdn.net/yoyocat915/article/details/80325494
https://blog.csdn.net/yoyocat915/article/details/80269901