Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix the "No drivers have been configured or have been found on PATH" error?

I would like to run Selenium server standalone 4 on my server. But as I try to run java -jar selenium-server-4-beta-2.jar standalone it throws me an error:

No drivers have been configured or have been found on PATH

I don't understand what to do it. I have an actual driver file in the same directory as the jar file.

Can somebody tell me please what it means?

like image 759
Čamo Avatar asked Sep 05 '25 03:09

Čamo


2 Answers

You can also download the chromedriver directly from here: https://chromedriver.chromium.org/downloads

and the set the "path" variable with the location of the chromedriver:

enter image description here

Then run the commend:

java -jar selenium-server-4.0.0.jar standalone
like image 115
Eyal Sooliman Avatar answered Sep 07 '25 19:09

Eyal Sooliman


have you set the chrome driver path. you may want to set that

System.setProperty("webdriver.chrome.driver","Your Chrome driver locaton");
WebDriver driver =new ChromeDriver();
like image 28
Sonali Das Avatar answered Sep 07 '25 21:09

Sonali Das