I am getting an “exception in thread ”main“ java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver”

荒凉一梦 提交于 2019-12-06 05:28:58

This is where a dependency manager (like Maven) can help you, versus manual copying of libs.

org.openqa.selenium.WebDriver can be found in selenium-api-<version>.jar

You will likely also need: selenium-remote-driver-<version>.jar and probably also selenium-support-<version>.jar, in addition to the selenium-java-<version>.jar you already have.

I am expecting good to use only one either standalone or java specific jars. Please give try by using only selenium-server-standalone-2.xx.0.jar i hope its works fine.

If you are trying to use java specific jars please provide all jars in downloaded zip file instead only that selenium-java.jar file. If you add all jar files in downloaded zip i hope this issue will resolved.

Thank You, Murali

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!