The webdriver is selenium 2. webdriver is an excellent, open source, automated testing framework. Supports many languages. This article describes how to build an environment using java Eclipse
Reading Contents
First, download Eclipse and configure Java environment variables:
//www.VeVB.COM/article/87443.htm
Method 1 Add jar package
Official download address: http://www.seleniumhq.org/download/
The official address is often blocked, so you can also download it from my Baidu network disk: http://pan.baidu.com/s/1c1tD6Kw
After decompression, there are four files:
1. Create a new Java Project
Copy all the files unzipped above to the newly created Project directory. The directory structure is as follows
2. Add build path, right-click the project directory Build Path -> Config build path -> java build path -> Libraries -> Add JARs
3. Add all the jar packages in the libs folder, and then add selenium-java-2.44.0-src.jar and selenium-java-2.44.0.jar
After successful addition, the directory structure is as follows.
Method 2 directly reference selenium-server-standalone.jar
The download address of selenium-server-standalone.jar is also at: http://pan.baidu.com/s/1c1tD6Kw
Just add selenium-server-standalone.jar to the java project directly