Webdriver is selenium 2. Webdriver is an excellent, open source, automated testing framework. Supports many languages. This article describes how to build an environment with Java Eclipse
Reading Table of Contents
- First download good eclipse and configure Java environment variables
- Method add a Jar package
- Method two direct Reference Selenium-server-standalone.jar
First download good eclipse and configure the Java environment variables:
Http://www.jb51.net/article/87443.htm
Method add a Jar package
Official Download Address: http://www.seleniumhq.org/download/
The official address is often the wall, also can to my Baidu network disk download: http://pan.baidu.com/s/1c1tD6Kw
After decompression, there are four files:
1. Create a new Java Project
Copy the files that were extracted from the above to the new project directory structure as follows
2. Add build path, project directory right key 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 adding success, the directory structure is as follows,
Method two direct Reference Selenium-server-standalone.jar
Selenium-server-standalone.jar Download Address is also in: http://pan.baidu.com/s/1c1tD6Kw
Adding Selenium-server-standalone.jar directly to Java projects is OK.