Not able to launch browser from selenium-side-runner (command line runner)

1,191 views
Skip to first unread message

BM

unread,
Apr 16, 2019, 3:07:42 AM4/16/19
to Selenium Users
Hi there!! I'm new to Selenium and happy to see the group here.. Wondering if someone can assist me!!!

Recently I'm using Selenium IDE and trying to do parallel execution using Selenium-side-runner(command line runner). I am using capabilities to invoke multiple browsers to run my test suite. However, when I run my script by this command - (e.g. selenium-side-runner -c "browserName=firefox" LoginTS.side)
i am getting the below error. 
(Please note that I have already updated my system PATH variables with chromedriver/geckodrivers exe locations) not sure still I'm missing something..

The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver from http://chromedriver.storage.googleapis.com/index.html and ensure it can be found on your PATH.
at new ServiceBuilder (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/chrome.js:232:13)
at getDefaultService (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/chrome.js:321:22)
at Function.createSession (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/chrome.js:696:44)
at createDriver (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/index.js:155:33)
at Builder.build (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/index.js:647:16)
at buildDriver (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/jest-environment-selenium/dist/index.js:65:17)
at WebdriverEnvironment.setup (../../../Users/bandita.mishra/AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/jest-environment-selenium/dist/index.js:36:32)


Any guidance from anyone will be highly appreciated

Dave Haeffner

unread,
Aug 28, 2019, 7:35:39 AM8/28/19
to Selenium Users
Hey BM,

Were you able to resolve your issue?

As the error message suggests - you need to visit the link it provided, downloaded ChromeDriver, and add it to your system path.

Alternatively, you can use the npm package chromedriver to handle this for you.

For details on this setup requirement, you can see the documentation for the command-line runner here: https://www.seleniumhq.org/selenium-ide/docs/en/introduction/command-line-runner/


Cheers,
Dave H

Cristian Spiescu

unread,
Jan 7, 2020, 10:39:19 PM1/7/20
to Selenium Users
Hello,

I'm experiencing kind of the same issue. I have followed the instructions at:https://www.seleniumhq.org/selenium-ide/docs/en/introduction/command-line-runner/ and I installed chromedriver via npm.
So now if I simply type "chromedriver" in the terminal, it executes.

However, selenium-side-runner is not happy. It throws the message reported in the original post. I.e.:

The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver from ...

If I do what it says, i.e. add the dir to the PATH, then it works:

set path=%path%;c:\Users\Cristi\AppData\Roaming\npm\node_modules\chromedriver\lib\chromedriver\

So now my question: I think that if I have installed chromedriver via npm, it shouldn't be necessary to also include it in PATH. The instructions don't mention anything about this. I think that chromedriver should be in PATH only if it's not installed via npm. Am I correct? And in this case, what am I doing wrong? I.e. I have chromedriver downloaded via npm, but selenium-side-runner still complains about the fact that it cannot find it in PATH.

I'd like to mention that I recall that when I initially tried selenium-side-runner, some while ago, it had worked seamlessy, without requiring me to mess w/ PATH.

Thank you in advance,
Cristian.
Reply all
Reply to author
Forward
0 new messages