SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Robotframework+Jenkin: WebDriverException: Message: 'chromedriver' executable needs to be in PATH.

Open mithunsureshqa opened this issue 8 years ago • 3 comments

Hello, I am trying to run a simple robotframework test from jenkin. below is my shell command set up in jenkin. screen shot 2018-04-12 at 2 30 18 pm On running the test, i get the error, Learning test case :: Jenkin integration [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open | FAIL | WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

I tried to set the environment variable under configure jenkin to point to webdriver path. On running, i was getting error "python: command not found"

Can someone help me please.

mithunsureshqa avatar Apr 12 '18 19:04 mithunsureshqa

This is a Jenkins configuration problem and not a problem with SeleniumLibrary. Therefore it's support issue and support channels are explained in here: https://github.com/robotframework/SeleniumLibrary/blob/master/README.rst#support I would send mail to the user group.

Closing issue because this is not a problem with SeleniumLibrary.

aaltat avatar Apr 12 '18 19:04 aaltat

in your execute shell in jenkins put

whereis python

it can't find your python install. What version of python are you using

On Thu, Apr 12, 2018 at 2:34 PM, mithunsureshqa [email protected] wrote:

Hello, I am trying to run a simple robotframework test from jenkin. below is my shell command set up in jenkin. [image: screen shot 2018-04-12 at 2 30 18 pm] https://user-images.githubusercontent.com/38289752/38699597-1266a114-3e5e-11e8-8557-b69e4df8e79e.png On running the test, i get the error, Learning test case :: Jenkin integration [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open | FAIL | WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

I tried to set the environment variable under configure jenkin to point to webdriver path. On running, i was getting error "python: command not found"

Can someone help me please.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robotframework/SeleniumLibrary/issues/1104, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAoXRsZxJvMs4f9RY8eKlLArxEvj1lRks5tn6wzgaJpZM4TSXjk .

-- Ruby: http://blog.rubygeek.com - http://www.twitter.com/rubygeek http://www.linkedin.com/in/nolastowe - my linkedin profile http://github.com/rubygeek - my code

rubygeek avatar Apr 19 '18 02:04 rubygeek

  • whereis python returns --> /usr/bin/python On executing test cases, executes the ones without browser being involved. but not with the one that involves browser.

Started by user Started by use Mithun Mahesh Suresh Building in workspace /Users/Shared/Jenkins/Home/workspace/Ltest [Ltest] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/jenkins6721284156494462966.sh

  • whereis python -m robot.run /Users/msuresh/PycharmProjects/optimus-prime/tests /usr/bin/python
  • python -m robot.run /Users/msuresh/PycharmProjects/optimus-prime/tests ============================================================================== Tests
    ============================================================================== Tests.Learn-Practice
    ============================================================================== Able to use datetime data :: Learn DateTime library | PASS |

Calc month & day of current plus 2 days | PASS |

Tests.Learn-Practice | PASS | 2 critical tests, 2 passed, 0 failed

mithunsureshqa avatar Apr 19 '18 13:04 mithunsureshqa