java.lang.NoClassDefFoundError:org/openqa/selenium/remote/SessionNotFoundException [英] java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundException

查看:144
本文介绍了java.lang.NoClassDefFoundError:org/openqa/selenium/remote/SessionNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Firefox 45.0,并且pom.xml中添加的依赖项是 selenium-firefox-driver 2.53.0.

I am using Firefox 45.0 and Dependency added in pom.xml is selenium-firefox-driver 2.53.0.

java.lang.NoClassDefFoundError: org/openqa/selenium/remote/SessionNotFoundException
    at TestFIles_MDM.Test_Authn.setup(Test_Authn.java:27)

Firefox和Chrome均出现错误.

Error is coming for both Firefox and Chrome.

我如何解决它,上周它在工作.

How can I resolve it, it was working last week.

推荐答案

我认为您在pom.xml中缺少此依赖项:

I think you are missing this dependency in pom.xml:

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>2.53.0</version>
</dependency>  

检查有关Maven依赖项的硒文档.

这篇关于java.lang.NoClassDefFoundError:org/openqa/selenium/remote/SessionNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆