Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

Error message:

'chromedriver' executable needs to be in PATH

I was trying to code a script using selenium in pycharm, however, the error above occurred.

I am new to selenium, isn't chrome driver in the folder "selenium." If it isn't, where can I find it and add it to the path?

By the way, I tried typing "chromedriver" in cmd, however, it wasn't recognized as an internal or external command.

This error is shown below:

Traceback (most recent call last):

  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\", line 64, in start

    stdout=self.log_file, stderr=self.log_file)

  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\", line 947, in __init__

    restore_signals, start_new_session)

  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\", line 1224, in _execute_child


PermissionError: [WinError 5] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:/Users/sebastian/PycharmProjects/web/", line 10, in <module>

    browser = webdriver.Chrome("C:/Users/sebastian/desktop/selenium-3.0.1")

  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\chrome\", line 62, in __init__


  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\", line 76, in start

    os.path.basename(self.path), self.start_error_message)

selenium.common.exceptions.WebDriverException: Message: 'selenium-3.0.1' executable may have wrong permissions. Please see

Exception ignored in: <bound method Service.__del__ of < object at 0x01EDEAF0>>

Traceback (most recent call last):

  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\", line 163, in __del__


  File "C:\Users\sebastian\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\", line 135, in stop

    if self.process is None:

AttributeError: 'Service' object has no attribute 'process'

1 Answer

0 votes
by (62.9k points)

You can download ChromeDriver here:

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')

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s automation testing course online

Browse Categories