简体   繁体   English

我究竟做错了什么? 我正在尝试将 selenium 依赖项添加到 Intellij,但我不断收到错误

[英]What am I doing wrong? I am trying to add selenium dependencies to Intellij and I keep getting errors

pom file I am trying to add selenium dependencies, but I keep getting errors. pom 文件我正在尝试添加 selenium 依赖项,但我不断收到错误。 I am new to selenium so I am trying to get it setup.我是 selenium 的新手,所以我正在尝试设置它。 Reloading the project didnt help, nor did cleaning up the artifacts.重新加载项目没有帮助,清理工件也没有帮助。 Below is an image of the pom file and the error I am receiving.下面是 pom 文件的图像和我收到的错误。

''' Cannot resolve org.seleniumhq.selenium:selenium-java:4.1.1 ''' ''' 无法解析 org.seleniumhq.selenium:selenium-java:4.1.1 '''

First of all, you can try newest version:首先,您可以尝试最新版本:

<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.1.1</version>
</dependency>

Try:尝试:

  • clean maven project清洁 maven 项目
  • reload maven project重新加载 maven 项目
  • Invalidate Cache & Restart InteliiJ IDEA使缓存无效并重新启动 InteliiJ IDEA

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Selenium中的xPath-我在做什么错? - xPath in Selenium - what am I doing wrong? 使用 selenium 的函数我做错了什么? - What am I doing wrong using functions with selenium? 我试图从 ebay 类别下拉列表的下拉列表中选择书籍价值,有人可以告诉我我做错了什么。 我不断收到错误 - I was trying to pick Books value from dropdown on ebay categories dropdown, can someone tell me what i am doing wrong. I keep getting error 以下代码在做什么? 我将硒用于Python,由于某种原因,我收到以下错误 - What am I doing wrong with the following code? I am using selenium for Python and for some reason, I get the error below 我一直在尝试在 intelliJ 中运行 selenium 基本测试,但出现以下错误 - I have been trying to run selenium basic test in intelliJ and I am getting the following error 添加 MVN 依赖项时,我在 IntelliJ 中遇到错误 - Selenium Java » 3.141.59。 有什么建议么? - I am getting errors in IntelliJ when adding MVN dependency- Selenium Java » 3.141.59. Any suggestions? 无法使用 Python Selenium 选择项目我做错了什么? - Unable to select item using Python Selenium What am I doing wrong? 在进行硒测试时—我遇到了一个错误 - while doing selenium testing— I am getting an error 我正在尝试在 Steam 中提取评论者的姓名,但我得到的是空列表,我哪里错了? - I am trying to extract names of the reviewers in steam , but I am getting empty list , where am I wrong? 收到错误“消息:过时的元素参考:元素未附加到页面文档”。我做错了什么 - Getting error "Message: stale element reference: element is not attached to the page document".what i am doing wrong
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM