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
1 Answer
Reset to default 7Is 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
版权声明:本文标题:javascript - Specify chromedriver path to selenium-standalone - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742380359a2463968.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论