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?

enter image description here

When I try to run a basic test getting errors Webdriver doesn’t work.
enter image description here

>Solution :

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>

Leave a Reply