[英]Getting error java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/internal/Locatable at com.tests
java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/internal/Locatable at com.tests. java.lang.NoClassDefFoundError:org / openqa / selenium / interactions / internal /位于com.tests处。
Am getting this error when creating a driver instance for chrome or remote webdriver also. 也为Chrome或远程Webdriver创建驱动程序实例时出现此错误。
You are getting this error as one of jar file is missing in your build path. 您收到此错误,因为您的构建路径中缺少jar文件之一。
From the error I could see that the 'Locatable' class is missing. 从错误中我可以看到缺少“ Locatable”类。
This ' Locatable ' class is available in ' org.openqa.selenium.interactions.internal ' package inside ' client-combined-3.6.0.jar ' 此“可定位 ”类在“ client-combined-3.6.0.jar ”中的“ org.openqa.selenium.interactions.internal ”包中可用
However,I would recommend you to reimport all selenium related jars to your project,to make sure you wont be getting any such dependency issues down the line. 但是,我建议您将所有与硒相关的jar重新导入到您的项目中,以确保不会出现任何此类依赖项问题。
1.You can download selenium for java client 3.6.0 from http://www.seleniumhq.org/download/ 2.Make sure you added all jars from selenium directory to your build path. 1.您可以从http://www.seleniumhq.org/download/下载适用于Java客户端3.6.0的selenium。2.确保已将selenium目录中的所有jar添加到构建路径中。
3.Rerun your project. 3.重新运行您的项目。
Cheers! 干杯!
在使用最新的jar更新到3.6.0之后,它的工作方式开始。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.