Quick solution to java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices error

In case if you face this problem, one of the possible solutions that will work for you is to make sure that your pom.xml file is up to date and you use right version of webdriver and selenium java bindings. Here‘s what helped me

<dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>2.35.0</version>
</dependency>
<dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-server</artifactId>
      <version>2.35.0</version>
</dependency>
<dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-common</artifactId>
      <version>2.0b1</version>
</dependency>
<dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-api</artifactId>
      <version>2.35.0</version>
</dependency>  
时间: 2024-08-14 17:33:42

Quick solution to java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices error的相关文章

java.lang.NoClassDefFoundError: org/openqa/selenium/htmlunit/HtmlUnitDriver 问题解决方案

最近在做一个项目参加比赛,需要截取很多数据,意外找到了一个程序叫webcollector 然而在使用的时候出了一个问题 java.lang.NoClassDefFoundError: org/openqa/selenium/htmlunit/HtmlUnitDriver 不停得提示这个 ,在网上找了很久没发现解决方案 不想草草了之,google了NoClassDefFoundError ,发现可能是classpath路径配置错误,但是发现并没有错, 于是考虑了一下,可能是没有org/openqa

Java AOP nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice || Error creating bean with name &#39;org.springframework.aop.aspectj.AspectJPointcutAdvisor#0&#39; 两个异常解决办法

贴出applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://ww

maven webcollector java.lang.ClassNotFoundException: org.openqa.selenium.remote.SessionNotFoundException

使用webcollector时出现了如下异常 分析是依赖的问题,不仅要添加selenium-java,还要添加htmlunit-driver的依赖,注意不要添加成selenium-htmlunit-driver 1 <!-- selenium --> 2 <dependency> 3 <groupId>org.seleniumhq.selenium</groupId> 4 <artifactId>selenium-java</artifac

JUnit-4.11使用报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing错误

下载了最新的JUnit版本,是4.11,结果尝试使用发现总是报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing这样的错误,上网查了一下,一般的解决方案是,换一个低一点的版本就好了.还有人说,是缺少hamcrest的包.去官网又看了一下,结果发现这样一段话: junit.jar: Includes the Hamcrest classes. The simple all-in-one solution to get starte

JUnit-4.11使用报java.lang.NoClassDefFoundError: org/h

今天尝试使用JUnit,下载了最新的JUnit版本,是4.11,结果尝试使用发现总是报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing这样的错误,上网查了一下,一般的解决方案是,换一个低一点的版本就好了.还有人说,是缺少hamcrest的包.去官网又看了一下,结果发现这样一段话: junit.jar: Includes the Hamcrest classes. The simple all-in-one solution t

java.lang.NoClassDefFoundError: android.support.v4.view.ViewConfigurationCompat

Recently I am trying to run the sliding menu examples which was given in this blog: http://www.curious-creature.org/2012/12/14/android-recipe-3-sliding-menu-layers-and-filters/; 1. download library prject from github; 2. Inside the main project, righ

Error &quot;java.lang.NoClassDefFoundError:org/openxmlformats/schemas/spreadsheetml/x2006/main/CTExtensionList&quot; in SoapUI

After upgrade readyAPI 1.9 to the higher version, pop up error "java.lang.NoClassDefFoundError:org/openxmlformats/schemas/spreadsheetml/x2006/main/CTExtensionList". solution: replace "poi-ooxml-schemas-3.12.jar" with "ooxml-schema

Spring boot ---- java.lang.NoClassDefFoundError: javax/servlet/ServletContext

场景描述 项目中用到spring boot进行带页面的开发,从github上的simples中下载了对应的spring-boot-sample-web-jsp项目,经简单修改之后死活启动不起来,各种异常.spring-boot以简单容易上手为核心宗旨,可为什么在引入jar时就会出现这么多问题呢? 异常信息 异常一: 2016-06-17 11:04:14.216 ERROR 4684 --- [ main] o.s.boot.SpringApplication : Application sta

java.lang.NoClassDefFoundError: com/opensymphony/x

问题:严重: Unable to read class [com.spml.action.AddUserAction]java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/DefaultClassFinder$InfoBuildingVisitor    at com.opensymphony.xwork2.util.finder.DefaultClassFinder.readClassDef(DefaultCla