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:
-
- Selenium server is not started
Workaround:
1.cmd window launches Selenium Server service
Issues encountered running selenium in eclipse