# "‘chromedriver’ executable needs to be in PATH" despite me setting the path to it explicitly

**URL:** <https://travis-ci.community/t/chromedriver-executable-needs-to-be-in-path-despite-me-setting-the-path-to-it-explicitly/9428>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [July 24, 2020, 3:35pm UTC](https://travis-ci.community/t/chromedriver-executable-needs-to-be-in-path-despite-me-setting-the-path-to-it-explicitly/9428 "2020-07-24T15:35:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billonyohan](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@Billonyohan](https://travis-ci.community/u/Billonyohan)\
**Post date:** [July 24, 2020, 3:35pm UTC](https://travis-ci.community/t/chromedriver-executable-needs-to-be-in-path-despite-me-setting-the-path-to-it-explicitly/9428/1 "2020-07-24T15:35:32Z")

</div>

Hi guys,

i have a problem with chromedriver path

the path of `chromedriver` in my repo is `/veles_website/env/chromedriver` and my test file is:

```
def setUp(self):
    self.selenium = webdriver.Chrome("/veles_website/env/chromedriver")

```

So I don’t know why I have this problem “`selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.`”

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [July 24, 2020, 7:08pm UTC](https://travis-ci.community/t/chromedriver-executable-needs-to-be-in-path-despite-me-setting-the-path-to-it-explicitly/9428/2 "2020-07-24T19:08:32Z")

</div>

[This error means that the executable is not found](https://github.com/SeleniumHQ/selenium/blob/273ce9bbc0881a0d53f11599bb8666addfe6681b/py/selenium/webdriver/common/service.py#L80-L83).  
Check if the path is correct and if the file is there (you are using an absolute path outside `/home` which is probably not what you want).

Can’t say anything else without seeing the build.

---

<div class="post-metadata">

**Author:** ![Billonyohan](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@Billonyohan](https://travis-ci.community/u/Billonyohan)\
**Post date:** [July 24, 2020, 8:07pm UTC](https://travis-ci.community/t/chromedriver-executable-needs-to-be-in-path-despite-me-setting-the-path-to-it-explicitly/9428/3 "2020-07-24T20:07:46Z")

</div>

/Users/macbookair/Documents/GitHub/veleos\_website/env/chromedriver

this is my path on my laptop we work when I launch my command on my terminal

---

<div class="post-metadata">

**Author:** ![linehammer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/linehammer/32/6012_2.png) [@linehammer](https://travis-ci.community/u/linehammer)\
**Post date:** [January 25, 2021, 6:55am UTC](https://travis-ci.community/t/chromedriver-executable-needs-to-be-in-path-despite-me-setting-the-path-to-it-explicitly/9428/5 "2021-01-25T06:55:26Z")

</div>

You can test if it actually is in the [python](http://net-informations.com/python/iq/default.htm) PATH, if you open a cmd and type in chromedriver and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong. Then try the following:

Download ChromeDriver

Then you have multiple options:

- Add it to your system path

- Put it in the same directory as your python script

- Specify the location directly via executable\_path

- driver = webdriver.Chrome(executable\_path=‘C:/path/to/chromedriver.exe’)
