Comment #7 on issue 5245 by getting
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal when calling
the FirefoxDriver contructor using selenium-java 2.30.0

Seeing the same issue under maven, and looking at the dependency tree,
unless I am missing something, this seems to be a pb with the selenium-java
and driver dependencies.
In the tree below notice that a) the firefox driver (which I am trying to
instantiate) doesn't declare a dependency on xml-apis and b) the selenium
htmlunit driver declares one on xml-apis version 1.3.04.

That version is on my classpath, but I still get the NoClassDefFoundError.
Adding an explicit dependency on xml-apis 1.4.01 solved the problem.

+- org.seleniumhq.selenium:selenium-java:jar:2.31.0:test
+- org.seleniumhq.selenium:selenium-android-driver:jar:2.31.0:test
\- org.seleniumhq.selenium:selenium-remote-driver:jar:2.31.0:test
+- cglib:cglib-nodep:jar:2.1_3:test
\- org.json:json:jar:20080701:test
+- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.31.0:test
+- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.31.0:test
+- org.seleniumhq.selenium:selenium-api:jar:2.31.0:test
\- net.sourceforge.htmlunit:htmlunit:jar:2.11:test
+- xalan:xalan:jar:2.7.1:test
\- xalan:serializer:jar:2.7.1:test
\- xml-apis:xml-apis:jar:1.3.04:test
+- org.apache.commons:commons-lang3:jar:3.1:test
+- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.11:test
+- net.sourceforge.nekohtml:nekohtml:jar:1.9.17:test
+- net.sourceforge.cssparser:cssparser:jar:0.9.8:test
\- org.w3c.css:sac:jar:1.3:test
\- org.eclipse.jetty:jetty-websocket:jar:8.1.7.v20120910:test
+- org.eclipse.jetty:jetty-util:jar:8.1.7.v20120910:test
+- org.eclipse.jetty:jetty-io:jar:8.1.7.v20120910:test
\- org.eclipse.jetty:jetty-http:jar:8.1.7.v20120910:test
+- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.31.0:test
\- org.apache.commons:commons-exec:jar:1.1:test
+- org.seleniumhq.selenium:selenium-ie-driver:jar:2.31.0:test
+- org.seleniumhq.selenium:selenium-iphone-driver:jar:2.31.0:test
+- org.seleniumhq.selenium:selenium-safari-driver:jar:2.31.0:test
+- org.seleniumhq.selenium:selenium-support:jar:2.31.0:test
\- org.webbitserver:webbit:jar:0.4.14:test
\- io.netty:netty:jar:3.5.2.Final:test
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 14 | next ›
Discussion Overview
groupselenium-developer-activity @
postedFeb 27, '13 at 2:18a
activeApr 9, '15 at 1:34p

1 user in discussion

Selenium: 14 posts



site design / logo © 2021 Grokbase