Note: I am not asking about setting the path of the chromedriver.
I want to run a Selenium node with a specific version of Chromium as opposed to the default Chrome installed on the system. The webdriver doc says I would need to pass a ChromeOptions
object, but this is obviosuly impossible to do on the command line.
I've tried manually adding a JSON that represents ChromeOptions
to the command line (like below), but it does not have any effect.
java.exe -jar selenium-server-standalone-2.47.1.jar -role node -hub http://localhost:4444/grid/register -browser browserName="chrome",version=ANY,platform=WINDOWS,maxInstances=5,chromeOptions={binary:./chromium/chrome.exe} -Dwebdriver.chrome.driver=chromedriver.exe
(I've tried all different ways of quoting the JSON, but it is simply not used.)