Java Selenium Tutorial Environment build method _java

Source: Internet
Author: User

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

    1. First download good eclipse and configure Java environment variables
    2. Method add a Jar package
    3. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.