Problems in Java+selenium environment construction

Source: Internet
Author: User

Briefly describe the problems encountered in setting up the environmental process:

1. Preparing the material stage, no problem.

Jdk

Eclipse

Selenium

Chromedriver

It is important to note that the chrome version, the chrome driver version, and the selenium version are packaged. Baidu can get the corresponding relationship.

2. Configure the installation:

In the early days, I mistakenly thought that the selenium downloaded in Firefox is usually considered selenium, not really. Firefox is a seleniumide thing, it is the function of the interface to record playback and simplify the script writing. Use graphical interface operations instead of plain code test script writing. The true meaning of the selenium should be seleniumserver. Selenium's architecture and composition The following blog is very clear.

72843984

3. Stepping on the pit

The browser does not call up. Eclipse Error

Starting Chromedriver 2.38.552522 (437E6FBEDFA8762DEC75E2C5B3DDB86763DC9DCB) on port 9475
Only local connections is allowed.

It turned out that chromedriver misplaced the position. Placed in the Seleniumserver directory, in fact, should be placed under the Chrome installation path and then start sever to perform the test.

Problems in Java+selenium environment construction

Related Article

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: [email protected] 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.