Issues encountered running selenium in eclipse

Source: Internet
Author: User

1. Java.lang.NoClassDefFoundError:

Workaround:Import all the jar packages in Selenium-java-2.44.0\selenium-2.44.0\libs in the Java project of Eclipse.

2. Under the Win7 IE8

Selenium script through selenium = new Defaultselenium ("localhost", 4444, "*iexplore", "http://10.88.15.51:8080/"), the way the browser is set
Start Selenium server with Java-jar Selenium-server.jar without parameters

When you run the script, the system reports the following error:

The problem occurs because:

1. In the WIN7 IE8 environment, IE is set to "Protected mode", which causes the selenium to be unable to open ie. (Protected mode is the name of the English operating system, the Chinese operating system, we correspond to it)

2.selenium is slow to run in IE, if Google Chrome is faster.

Workaround:

1. The "Protected Mode" setting of IE is canceled. Internet options->security-> "Internet" icon->enable Protected Mode (English version)

2. Use another browser, Google Chrome or Firefox 3.0

3. Could not contact Selenium Server:

The problem occurs because:

      1. Selenium server is not started

Workaround:

1.cmd window launches Selenium Server service

Issues encountered running selenium in eclipse

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: 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.