Selenium 2.5.0 to 2.11.0 Upgrade

118 views
Skip to first unread message

Dan

unread,
Oct 31, 2011, 3:31:26 PM10/31/11
to Selenium Users
I've recently upgraded to Selenium 2.11.0 (from 2.5.0). All of my
tests fail with the following (See below). I've checked to make sure I
have httpclient-4.1.2 is referenced properly.

Switching back to 2.5.0 alleviates the issue, but I'd really like to
use Simon's "ExpectedConditions."

Any help would be greatly appreciated.

----
Error Message

org/apache/http/client/RedirectStrategy

Stacktrace

java.lang.NoClassDefFoundError: org/apache/http/client/
RedirectStrategy
at
org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:
204)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:
78)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:
149)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:
75)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
128)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
79)
at
org.caltesting.calbot.Selenium2Base.startSelenium(Selenium2Base.java:
41)
...
Caused by: java.lang.ClassNotFoundException:
org.apache.http.client.RedirectStrategy
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Dan

unread,
Nov 1, 2011, 11:40:28 AM11/1/11
to Selenium Users
As it turns out, my Ant task was missing a reference to the libs
folder. I'm baffled how this worked for me in 2.5.0.
Reply all
Reply to author
Forward
0 new messages