Webdriver is selenium 2. Webdriver is an excellent, open-source, automated testing framework. Support many languages. This article describes how to build an environment with Java Eclipse
Read Catalog first download the Eclipse and configure the Java environment variable step omitted, please Baidu method add jar Package
Official: http://www.seleniumhq.org/download/
Official address is often wall, also can go to my Baidu network disk download: http://pan.baidu.com/s/1c1tD6Kw
After decompression there are four files:
1. Create a new Java Project
The files extracted from the above are copied to the new project directory, the directory structure is as follows
2. Add build path, project directory right-click Build path, Config build path, Java Build path, Libraries, add JARs
3. Add all the jar packages under the Libs folder, add Selenium-java-2.44.0-src.jar and Selenium-java-2.44.0.jar
After the add succeeds, the directory structure is as follows,
Method two direct Reference Selenium-server-standalone.jar
Selenium-server-standalone.jar also in: http://pan.baidu.com/s/1c1tD6Kw
Add Selenium-server-standalone.jar directly to the Java project.
Java Selenium (ii) environment construction method one