java.lang.module.findexception:无法为Cucumber-Core-7.3.4.jar得出模块描述符
我最初创建了一个普通的Java项目,遵循了上述步骤在这里href =“ https://www.edureka.co/blog/cucumber-selenium-tutorial/” rel =“ nofollow noreferrer”>在这里 但是不幸的是,我的项目不起作用,我在上述错误中遇到了此错误。我没有达到关于整合硒的谈论的步骤。
只是提到我使用了JAR文件的所有最新版本,如下所示。
我也有其他各种问题,当我在Internet上搜索时,每个人都在谈论pom.xml文件中的配置。但是这个文件来自Maven项目!因此,我将项目转换为一个Maven项目。但这也无法解决我的问题,因此我“削弱了卑鄙的性质”。即使在那之后也没有运气。 目前,这是一个Maven项目,但是当我关注它给我带来了主题错误。
这就是我的软件包资源管理器的外观: -
I initially created a plain Java project that followed the steps mentioned here and here but unfortunately, my project didn't work, I am getting this above error. I have not reached the step where it talks about integrating selenium.
Just to mention I used all the latest versions of the jar files as shown below.
I also got other various problems also, and to resolve them when I searched on the internet everyone was talking about the configuration inside the pom.xml file. But this file comes in the Maven project! so I converted my project to a Maven project. But that too didn't resolve my issues so I "disabled the Maven nature". No luck even after that.
currently, it is a Maven project but when I am following this step it is giving me the subject error.
This is how my package explorer look like:-
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
诀窍是从有效的东西开始小。然后在每次更改后检查是否仍然有效。这将有助于您了解每个组件和更改所做的事情,而不会使您不知所措。
不幸的是,您正在遵循一次完成很多工作的教程。尝试分解一点。首先了解Maven,并使用普通Java和单位测试。然后了解日食如何与Maven项目一起工作。然后将黄瓜与maven一起使用,然后添加硒。
这看起来似乎要做更多的工作,但是它更快了,因为您只需要一次解决一个问题即可。
我没有任何毛刺或食物的教程,但是您使用的是cucumber:
https://docs.cucumber.io/docs/guides/10-minute-tutorial/
The trick is to start small with something working. And then after each change check if it still works. This will help you build an understanding of what each component and change does without overwhelming you.
Unfortunately you are following tutorials that do a whole lot at once. Try to break this down a bit. First learn about Maven, with plain Java and maybe a unit test. Then learn about how Eclipse works with Maven projects. Then use Cucumber with Maven, then add Selenium.
This may seem like a lot more work but it is faster because you'll only have to solve one problem at a time.
I don't have any tutorials for Maven or Eclipse but for Cucumber you use:
https://docs.cucumber.io/docs/guides/10-minute-tutorial/