我使用的是 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 都出现错误。
我该如何解决它,它上周工作。
原文由 rich 发布,翻译遵循 CC BY-SA 4.0 许可协议
我认为您在 pom.xml 中缺少此依赖项:
检查 有关 Maven 依赖项的 Selenium 文档。