Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ChromeDriver run without Chrome installed?

Short question. Is there possibility to run chromedriver and selenium work without chrome app installed? Thanks

like image 387
Tymon Avatar asked Sep 17 '25 13:09

Tymon


1 Answers

The answer is No. You have to have the chrome application inside your computer. However, you do not need t install it. It will work with any portable Chrome versions as well. You simply have to point to the chrome executable location during tests.

ChromeOptions options = new ChromeOptions();
options.setBinary("/path/to/chrome/binary");

ChromeDriver driver = new ChromeDriver(options);
like image 176
debugger89 Avatar answered Sep 23 '25 11:09

debugger89