Short question. Is there possibility to run chromedriver and selenium work without chrome app installed? Thanks
Asked
Active
Viewed 2,680 times
4
-
Short Answer: No – Naveen Mar 31 '20 at 10:02
1 Answers
4
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);

debugger89
- 2,108
- 2
- 14
- 16
-
What do you mean by Chrome Application in the computer but not need to install it? We are trying to use a python program in one of our server that uses Chrome WebDriver but recently the server was restricted not to have any browsers besides the default one, and that removed the Chrome browser and since then we dont see this driver work. How do we address solve this situation please? – Ak777 Jan 12 '22 at 01:11
-
@Ak777, what I meant from this was, you need to have the chrome browser executable inside your server. Installing the browser and having the executable in a folder are two different things. If you have the browser installed, selenium will find the browser automatically. If not, you have to tell Selenium where is the browser executable with above code. – debugger89 Mar 04 '22 at 02:31