How to specify the Chrome binary location via the selenium server standalone command line?

selenium chrome binary python
selenium chromium
chrome binary download
linux chrome binary path
desired capabilities in selenium webdriver for chrome
desired capabilities in selenium webdriver for chrome python
chrome options

I am using a portable version of Google Chrome that is not stored at the default location of my Windows 7 machine. I don't have admin rights to install Chrome at the default location.

Running java -jar selenium-server-standalone-2.52.0.jar -help does not hint any possibility of setting the path to the chrome binary (not the chrome driver).

The chrome driver capabilities indicate that it's possible to set the binary but I'm not sure how to do it via the command line.

You can specify a non-standard location for the chrome binary in ChromeOptions.

ChromeOptions options = new ChromeOptions();

See the ChromeOptions documentation at:

Selenium Grid: set chrome *binary* path - google-chrome - html, How to specify the Chrome binary location via the selenium server standalone command line? - google-chrome. First solution: directly check in the non standard location, if there is a chrome binary file. You can use the code below: Second solution: You can use System.getProperty("") to distinguish your two machines, if they have different OS.

After many tries I've found that configuration like (please scroll window with code to find property chrome_binary)

For Windows environment

java -jar selenium-server-standalone-2.52.0.jar 
  -role webdriver"\path\to\chromedriver.exe"
  -browser "browserName=chrome,version=__version__,maxinstance=__no__,platform=WINDOWS,chrome_binary=\path\to\chrome\binary\chrome.exe" 
  -hubHost __address__
  -port __port__

works like a charm

Selenium server & browser drivers · lmc-eu/steward Wiki · GitHub, How to specify the Chrome binary location via the selenium server standalone command line? I am using a portable version of Google Chrome that is not stored​  Meta - OS: Windows 7 Selenium Version: 3.0.1 Browser: Firefox Browser Version: 49.0.2 Expected Behavior - Before upgrading to selenium-server-standalone-3.0.1 I was running multiple Firefox ESR versions on my grid node with selenium-serv

You can also use:

DesiredCapabilities capability =;
driver = new ChromeDriver(capability);

from org.openqa.selenium.remote.DesiredCapabilities

Can't define path to Chrome executable neither as a SystemProperty , This driver is used by Selenium standalone server to start the and place the binary file (like geckodriver or chromedriver ) to your PATH (eg. in /usr/bin ). to specify the path using parameters passed to the command like this: java -​"/opt/chromium-browser/chromedriver" -jar  To run tests in a given suite in parallel, you'll need to update the settings for that suite in Selenium IDE. Switch to the Test Suites view in Selenium IDE. Click the drop-down menu next to the name of the suite you'd like to configure and click Settings. Click the checkbox for Run in parallel. Click Submit.

The quick way that you should put your chromedriver into your selenium-server-standalone-2.52.0.jar the same folder .

Ex: XXX folder will have the jar and the driver exe

Selenium Grid -Chrome Browser - Chaya Thilakumara, I have success with the path of the chromedriver using -Dwebdriver.c using -​\path\to\chromedriver.exe command line System property. -jar selenium-server-standalone.jar -role webdriver -nodeConfig there is no ability to use system property to setup Chrome binary path. The problem is that the portable Chrome (from PortableApps) seems to only start when using GoogleChromePortable.exe. If I use the Chrome binary directly, it will start my local installation. With Selenium it seems that no matter what Chrome path I pass to it (GoogleChromePortable.exe or binary path), it starts my local installation.

First check chrome compatibility on , then download and place it

And then Start appium server with the following command:

appium --chromedriver-executable C:/Your path/chromedriver.exe

And run the script :)

Basics, Let's see how to write your first program using Selenium Grid. Node machine :​chrome browser, Selenium server.jar file and chromedriver.exe2. If the hub is up, you will see Selenium hub is up and running message in the command prompt. Command: cd <file path of your selenium standalone jar file>. To execute Selenium tests with Steward, Selenium server must be started to listen on some port. This is by default localhost:4444. There are two main options how you can accomplish this: Option 1: Run Selenium server + browser driver locally 💻 1. Install Selenium server. Selenium standalone server is simply a jar file.

Selenium Getting Started Notes ( WebDriver Setup), Verbosity; Check for updates; Command line output Chrome Driver; PhantomJS; Gecko Driver; IE Driver; Issues and The package was inspired by a similar node package -Dphantomjs.binary.path='/Users/jkim/Library/​Application The selenium function manages the Selenium Standalone binary. If you have installed Chrome browser in any other location (non-standard location), we can use ChromeOptions to launch chrome executable by passing the chrome binary in ChromeOptions. For Windows 8 and Windows 10, this is Chrome’s installed location: ‘C:\Program Files\Google\Chrome\Application’ by default.

Setting up your own Grid :: Documentation for Selenium, Firefox driver is included in the selenium-server-stanalone.jar available in the or the "-DpropertyName=value" command line flag) are used by the FirefoxDriver: Chromium team, the ChromeDriver is a standalone server which implements PATH or specify its location via the system property. ChromeDriver is a separate executable that Selenium WebDriver uses to control Chrome. It is maintained by the Chromium team with help from WebDriver contributors. If you are unfamiliar with Selenium WebDriver, you should check out the Selenium site.

Driver requirements :: Documentation for Selenium, The selenium-server-standalone package includes the hub, Open a command prompt and navigate to the directory where you copied the selenium-server-​standalone.jar file. If a port is not specified through the -port flag, a free port will be chosen java -jar  At times you may want to set special preferences or just use a custom profile altogether. If the former, you can use the 'chrome.prefs' capability (described later below) to specify preferences that will be applied after Chrome starts. If the latter, you can use the user-data-dir Chrome command-line switch to tell Chrome which profile to use:

  • As stated in my question, this is not about the driver. It is about the Chrome binary (chrome.exe) itself
  • Using a Chrome executable in a non-standard location ChromeOptions options = new ChromeOptions(); options.setBinary("/path/to/other/chrome/binary");
  • @JosephMTsai I am getting this AttributeError: 'Options' object has no attribute 'setBinary'
  • chrome_options = Options() chrome_options.add_argument("--disable-extensions") driver = webdriver.Chrome(chrome_options=chrome_options)
  • you could try this
  • This question didn't ask about appium, did it?