admin管理员组

文章数量:1334887

I am trying to start the selenium-standalone server () and it is throwing an error:

14:19:09 /usr/local/lib/node_modules/selenium-standalone/bin/selenium-standalone:54
14:19:09         throw err;
14:19:09               ^
14:19:09 Error: Missing /usr/local/lib/node_modules/selenium-standalone/.selenium/chromedriver/2.18-x64-chromedriver
14:19:09     at /usr/local/lib/node_modules/selenium-standalone/lib/check-paths-existence.js:15:20
14:19:09     at Object.cb [as onplete] (fs.js:169:19)
14:19:09 Build step 'Execute shell' marked build as failure

The selenium server is looking for the chromedriver at path

/usr/local/lib/node_modules/selenium-standalone/.selenium/chromedriver/2.18-x64-chromedriver

by default.

Is it possible to specify the chromedriver location at the mand line while running the server? Something like:

selenium-standalone -Dwebdriver.chrome.driver=<path_to_chromedriver> start

I am trying to start the selenium-standalone server (https://www.npmjs./package/selenium-standalone) and it is throwing an error:

14:19:09 /usr/local/lib/node_modules/selenium-standalone/bin/selenium-standalone:54
14:19:09         throw err;
14:19:09               ^
14:19:09 Error: Missing /usr/local/lib/node_modules/selenium-standalone/.selenium/chromedriver/2.18-x64-chromedriver
14:19:09     at /usr/local/lib/node_modules/selenium-standalone/lib/check-paths-existence.js:15:20
14:19:09     at Object.cb [as onplete] (fs.js:169:19)
14:19:09 Build step 'Execute shell' marked build as failure

The selenium server is looking for the chromedriver at path

/usr/local/lib/node_modules/selenium-standalone/.selenium/chromedriver/2.18-x64-chromedriver

by default.

Is it possible to specify the chromedriver location at the mand line while running the server? Something like:

selenium-standalone -Dwebdriver.chrome.driver=<path_to_chromedriver> start
Share Improve this question asked Oct 20, 2015 at 15:19 techjourneymantechjourneyman 1,8234 gold badges37 silver badges56 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

Is possible that you need to install it first!

➜  ~ selenium-standalone install
----------
selenium-standalone installation starting
----------

---
selenium install:
from: https://selenium-release.storage.googleapis./2.53/selenium-server-standalone-2.53.0.jar
to: /usr/local/lib/node_modules/selenium-standalone/.selenium/selenium-server/2.53.0-server.jar
---
chrome install:
from: https://chromedriver.storage.googleapis./2.21/chromedriver_mac32.zip
to: /usr/local/lib/node_modules/selenium-standalone/.selenium/chromedriver/2.21-x64-chromedriver


selenium-standalone installation [==================  ] 91% 8.2s

selenium-standalone provide this mand to helps you download and install chromedriver. Additionally, it provides mands to setup and download differents options for selenium, chromedriver and architecture (I didn't find a mand to set path)

# choose selenium version 
selenium-standalone install --version=2.45.0 --baseURL=https://selenium-release.storage.googleapis.

# choose chrome driver version 
selenium-standalone install --drivers.chrome.version=2.15 --drivers.chrome.baseURL=https://chromedriver.storage.googleapis.

# choose ie driver architecture 
selenium-standalone start --drivers.ie.arch=ia32 --drivers.ie.baseURL=https://selenium-release.storage.googleapis.

本文标签: javascriptSpecify chromedriver path to seleniumstandaloneStack Overflow