英文:
Selenium Junit maven - vulnerable dependency error?
问题
Normally I use a windows computer and these settings are working for me well without problem. But I am currently using MacBook pro (intel i9) and getting this error. I can't able to work junit. Can anyone help me please?
When I try to run a basic test getting errors Webdriver doesn't work.
英文:
Normally I use a windows computer and these settings are working for me well without problem. But I am currently using MacBook pro (intel i9) and getting this error. I can't able to work junit. Can anyone help me please?
When I try to run a basic test getting errors Webdriver doesn't work.
答案1
得分: 1
如果您在控制台中看到以下错误:
警告:无效的状态码=403 文本=禁止
java.io.IOException: 无效的状态码=403 文本=禁止
那么只需将您的 POM 文件中的 Selenium 版本从 v4.8.1
更改为 v4.8.3
。
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.8.3</version>
</dependency>
英文:
If below is the error you see in your console:
WARNING: Invalid Status code=403 text=Forbidden
java.io.IOException: Invalid Status code=403 text=Forbidden
Then just change the selenium version from v4.8.1
to v4.8.3
in your POM.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.8.3</version>
</dependency>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论