gpt4 book ai didi

java.lang.NoClassDefFoundError : org/openqa/selenium/remote/SessionNotFoundException 错误

转载 作者:搜寻专家 更新时间:2023-11-01 01:41:16 25 4
gpt4 key购买 nike

我使用的是 Firefox 45.0,在 pom.xml 中添加的依赖项是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 都出现错误。

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

最佳答案

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

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

检查 Selenium docs about Maven dependencies .

关于java.lang.NoClassDefFoundError : org/openqa/selenium/remote/SessionNotFoundException 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36698363/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com