Java Selenium (ii) environment construction method one

Source: Internet
Author: User

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

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.