Tymon
Tymon

Reputation: 99

ChromeDriver run without Chrome installed?

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

Upvotes: 4

Views: 3352

Answers (1)

debugger89
debugger89

Reputation: 2776

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);

Upvotes: 4

Related Questions