Error message: "'chromedriver' executable needs to be available in the path"
Asked Answered
B

35

381

I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/

After downloading the zip file, I unpacked the zip file to my downloads folder. Then I put the path to the executable binary (C:\Users\michael\Downloads\chromedriver_win32) into the Environment Variable "Path".

However, when I run the following code:

from selenium import webdriver

driver = webdriver.Chrome()

... I keep getting the following error message:

WebDriverException: Message: 'chromedriver' executable needs to be available in the path. Please look at     http://docs.seleniumhq.org/download/#thirdPartyDrivers and read up at http://code.google.com/p/selenium/wiki/ChromeDriver

But - as explained above - the executable is(!) in the path ... what is going on here?

Bacchae answered 24/4, 2015 at 22:46 Comment(11)
Try copying the chromedriver.exe in the same directory as your Python script.Leprose
Installing via Chocolatey will add it to the path, choco install chromedriver.Rabbit
for user encountered this problem in pycharm, restart will solve itShermy
I agree with ImNt's answer. Though I'd like to add that for those who are using virtualenv, you should run python in your venv file as Administrator, using the following example format: driver = webdriver.Chrome(r'C:/Users/michael/Downloads/chromedriver_win32/chromedriver.exe')Commemoration
@MalikBrahimi I've been searching this solution everywhere and none of them actually worked until I found your comment. Thanks a lotArmilla
@Armilla Ya the problem is the EXE has to be in the PATH or locally accessible to your script. By placing them in the same directory, you're eliminating the need for PATH and making it locally accessible in that folder to your script.Leprose
@MalikBrahimi it was not working even when added to the PATHArmilla
On Ubuntu: driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver')Lakeshialakey
Install Chromdriver through PyPi and follow the example mentioned: pypi.org/project/chromedriver-pyPontic
@MalikBrahimi I just used your suggestion now and it works. At first I was confused, then I copied the driver exe file and pasted in the folder (directory) where my python projects are. Thanks.Debrief
Thanks, Try copying the chromedriver.exe in the same directory as your Python script - it helpedBriannebriano
C
304

You can test if it actually is in the PATH, if you open a cmd and type in chromedriver (assuming your chromedriver executable is still named like this) and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong.

Alternatively you can use a direct path to the chromedriver like this:

 driver = webdriver.Chrome('/path/to/chromedriver') 

So in your specific case:

 driver = webdriver.Chrome("C:/Users/michael/Downloads/chromedriver_win32/chromedriver.exe")
Campuzano answered 24/4, 2015 at 22:52 Comment(8)
Thank you for the answer: "Starting ChromeDriver 2.15.322448" did appear. "Only local connections are allowed." also appeared. ... But I guess this is ok? .... One thing I was wondering is this: On the website there was only a 32bit version of chromedriver available .... but this should work fine with my 64bit windows, shouldn't it?Bacchae
@Bacchae Yeah, it is ok. And this will work with 64bit Windows; I'm using it myself. I suspect perhaps the selenium version may cause the issue? Which one do you have installed? Have you installed it using pip?Campuzano
Have you tried using the direct path to the driver when calling the webdriver as I mentioned in the answer? Did it fail with the same error?Campuzano
Cool! I tried it now and it worked. Thank you very much!! ... Do you also have any idea why this way worked andd the other didn't (coz it doesn't really makes sense to me)?Bacchae
No, actually I'm out of ideas why this didn't work. It should've worked for both cases. But maybe there's a tiny bit wrong. Hard to tell without seeing it directly on your PC. Anyways, glad I could help.Campuzano
When adding webdrivers to your PATH, no matter the OS, include only the directory where your webdriver is stored, not the executable. Example: PATH=$PATH:/path/to/webdriver/folder, not PATH=$PATH:/path/to/webdriver/chromedriver. Additionally, using PATH is much more portable than passing the location into your webdriver.Chrome() call, as we can always assume the PATH is set correctly wherever your code is run, but we can't assume their file structure is set up identically.Achlorhydria
Hey, steady_progress. I am in a similar situation too you, but for me @Campuzano 's answer did not work. I cannot seem to successfully edit my PATH variable either. Does anyone have any advice?Papaya
tried to use the same solution but getting this error: WebDriverException: Message: 'chromedriver.exe' executable may have wrong permissions. Please see sites.google.com/a/chromium.org/chromedriver/homeSexless
C
468

I see the discussions still talk about the old way of setting up chromedriver by downloading the binary and configuring the path manually.

This can be done automatically using webdriver-manager

pip install webdriver-manager

Now the above code in the question will work simply with below change,

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())

The same can be used to set Firefox, Edge and ie binaries.

Colorimeter answered 18/10, 2018 at 16:36 Comment(10)
@Colorimeter with all due respect why would anyone follow something from 3.6 when the current is 3.7. Next time it would be nice to explicitly say that it is for 3.6 .... ThanksColeoptile
The good thing about this solution is that it has more flexibility than other solutions based on specific path setup, which i see impractical in terms of using the script on multiple machines.Amidships
I'm trying this in Azure Databricks and it throws me this error ValueError: Could not get version for Chrome with this command: google-chrome --version || google-chrome-stable --version. What should I do?Kame
@Kame Perhaps, like me, you are using Chromium? In that case, you need to add: from webdriver_manager.utils import ChromeType and driver = webdriver.Chrome(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()). See pypi.org/project/webdriver-manager for details!Lithosphere
This is very cool! Much better than the PATH I was usingFournier
ChromeDriverManager().install() seems to edit the registry so you need to be a local admin for this to workClarisaclarise
i have an error with driver = webdriver.Chrome(ChromeDriverManager().install()) AttributeError: 'ChromeDriverManager' object has no attribute 'install'Salpiglossis
@AzySır bruh, some of us are still struggling to get time and permission to upgrade from 2.7.17Prothrombin
this no longer works (as of 2023). Here is the new solution: #75281958Banzai
I was getting ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_119.0.6045, see the following post: #76728274Nuclide
C
304

You can test if it actually is in the PATH, if you open a cmd and type in chromedriver (assuming your chromedriver executable is still named like this) and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong.

Alternatively you can use a direct path to the chromedriver like this:

 driver = webdriver.Chrome('/path/to/chromedriver') 

So in your specific case:

 driver = webdriver.Chrome("C:/Users/michael/Downloads/chromedriver_win32/chromedriver.exe")
Campuzano answered 24/4, 2015 at 22:52 Comment(8)
Thank you for the answer: "Starting ChromeDriver 2.15.322448" did appear. "Only local connections are allowed." also appeared. ... But I guess this is ok? .... One thing I was wondering is this: On the website there was only a 32bit version of chromedriver available .... but this should work fine with my 64bit windows, shouldn't it?Bacchae
@Bacchae Yeah, it is ok. And this will work with 64bit Windows; I'm using it myself. I suspect perhaps the selenium version may cause the issue? Which one do you have installed? Have you installed it using pip?Campuzano
Have you tried using the direct path to the driver when calling the webdriver as I mentioned in the answer? Did it fail with the same error?Campuzano
Cool! I tried it now and it worked. Thank you very much!! ... Do you also have any idea why this way worked andd the other didn't (coz it doesn't really makes sense to me)?Bacchae
No, actually I'm out of ideas why this didn't work. It should've worked for both cases. But maybe there's a tiny bit wrong. Hard to tell without seeing it directly on your PC. Anyways, glad I could help.Campuzano
When adding webdrivers to your PATH, no matter the OS, include only the directory where your webdriver is stored, not the executable. Example: PATH=$PATH:/path/to/webdriver/folder, not PATH=$PATH:/path/to/webdriver/chromedriver. Additionally, using PATH is much more portable than passing the location into your webdriver.Chrome() call, as we can always assume the PATH is set correctly wherever your code is run, but we can't assume their file structure is set up identically.Achlorhydria
Hey, steady_progress. I am in a similar situation too you, but for me @Campuzano 's answer did not work. I cannot seem to successfully edit my PATH variable either. Does anyone have any advice?Papaya
tried to use the same solution but getting this error: WebDriverException: Message: 'chromedriver.exe' executable may have wrong permissions. Please see sites.google.com/a/chromium.org/chromedriver/homeSexless
S
72

On Ubuntu:

sudo apt install chromium-chromedriver

On Debian:

sudo apt install chromium-driver

On macOS install Homebrew then do

brew install --cask chromedriver
Sex answered 15/10, 2019 at 0:30 Comment(5)
Then use: driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver') ..without changing $PATHLakeshialakey
@Lakeshialakey are you sure you need to do that? As I remember it, driver = webdriver.Chrome() worked fine for me.Sex
Hi Boris, yes, not sure why.. even after adding to PATH it didnt work without that. I'm sure setting up the path correctly would be better, but I just need to do one thing with Chromedriver quicklyLakeshialakey
tried above, got error The process started from chrome location /snap/chromium/2168/usr/lib/chromium-browser/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.). ANy suggestion how do you solve this? I've been in headache for this for 5 daysReplica
For Fedora: sudo dnf install chromedriverStockbroker
T
21

For Linux and OSX

Step 1: Download chromedriver

# You can find more recent/older versions at http://chromedriver.storage.googleapis.com/
# Also make sure to pick the right driver, based on your Operating System
wget http://chromedriver.storage.googleapis.com/81.0.4044.69/chromedriver_mac64.zip

For debian: wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip

Step 2: Add chromedriver to /usr/local/bin

unzip chromedriver_mac64.zip
sudo mv chromedriver /usr/local/bin
sudo chown root:root /usr/local/bin/chromedriver
sudo chmod +x /usr/local/bin/chromedriver

You should now be able to run

from selenium import webdriver

browser = webdriver.Chrome()
browser.get('http://localhost:8000')

without any issues

Thompkins answered 3/5, 2020 at 18:30 Comment(0)
P
16

Same situation with pycharm community edition, so, as for cmd, you must restart your ide in order to reload path variables. Restart your ide and it should be fine.

Pew answered 14/12, 2015 at 8:39 Comment(2)
Thanks. I had the same problem in Visual Studios. Just restarted IDE and it worked :) ThanksAstronaut
I restarted PyCharm....and it worked like a charm :) - I had no idea that my IDE had to be restarted in order for it to pick up updated environment variables.Kreis
W
11

We have to add path string, begin with the letter r before the string, for raw string. I tested this way, and it works.

driver = webdriver.Chrome(r"C:/Users/michael/Downloads/chromedriver_win32/chromedriver.exe")
Whosoever answered 11/10, 2017 at 22:18 Comment(1)
its helps after a long searchPhotomicroscope
C
8

According to the instruction, you need to include the path to ChromeDriver when instantiating webdriver.Chrome eg.:

driver = webdriver.Chrome('/path/to/chromedriver')
Carloscarlota answered 9/7, 2018 at 6:27 Comment(1)
If you scroll those instructions to the right, there's a comment saying "Optional argument, if not specified will search path." But at least some versions of webdriver seem to check any chromedriver they find in the path and if it's not 'happy' with it (wrong version etc) it won't use it (unless forced to try anyway by setting this parameter). It will keep searching path for a better version, then complain if it can't find one. ("No suitable chromedriver found" would have been a better message than "no chromedriver found".)Immutable
M
7

Another way is download and unzip chromedriver and put 'chromedriver.exe' in C:\Program Files\Python38\Scripts and then you need not to provide the path of driver, just

driver= webdriver.Chrome()

Medawar answered 10/11, 2020 at 20:1 Comment(0)
H
6

Before you add the chromedriver to your path, make sure it's the same version as your browser.

If not, you will need to match versions: either update/downgrade you chrome, and upgrade/downgrade your webdriver.

I recommend updating your chrome version as much as possible, and the matching the webdriver.

To update chrome:

  • On the top right corner, click on the three dots.
  • click help -> About Google Chrome
  • update the version and restart chrome

Then download the compatible version from here: http://chromedriver.chromium.org/downloads .

Note: The newest chromedriver doesn't always match the newest version of chrome!

Now you can add it to the PATH:

  1. create a new folder somewhere in your computer, where you will place your web drivers. I created a folder named webdrivers in C:\Program Files

  2. copy the folder path. In my case it was C:\Program Files\webdrivers

  3. right click on this PC -> properties:

enter image description here

  1. On the right click Advanced System settings
  2. Click Environment Variables
  3. In System variables, click on path and click edit
  4. click new
  5. paste the path you copied before
  6. click OK on all the windows

Thats it! I used pycharm and I had to reopen it. Maybe its the same with other IDEs or terminals.

Hemielytron answered 15/3, 2019 at 7:17 Comment(0)
S
5

Best way for sure is here:

Download and unzip chromedriver and put 'chromedriver.exe' in C:\Python27\Scripts and then you need not to provide the path of driver, just

driver= webdriver.Chrome()

You are done no need to add paths or anything

Salesclerk answered 4/2, 2020 at 17:49 Comment(0)
D
5

EXECUTABLE PATH HAS BEEN DEPRECATED!

if you get the exectuable_path has been deprecated warning, here is the fix...

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
def run():
    s=Service(ChromeDriverManager().install())    
    chrome_driver = webdriver.Chrome(service=s)
    ...
Dudeen answered 26/10, 2021 at 15:9 Comment(3)
On Windows this approach yields json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)Joshia
@Joshia I run on windows. Do you have the correct packages installed? This configuration still works for meDudeen
@Joshia I got the same error, may be try adding driver = webdriver.Chrome(ChromeDriverManager().install()) outside the function. That worked for me.Scarberry
H
3

Some additional input/clarification for future readers of this thread, to avoid tinkering with the PATH env. variable at the Windows level and restart of the Windows system: (copy of my answer from https://mcmap.net/q/63927/-selenium-using-python-geckodriver-executable-needs-to-be-in-path as applicable to Chrome):

(1) Download chromedriver (as described in this thread earlier) and place the (unzipped) chromedriver.exe at X:\Folder\of\your\choice

(2) Python code sample:

import os;
os.environ["PATH"] += os.pathsep + r'X:\Folder\of\your\choice';

from selenium import webdriver;
browser = webdriver.Chrome();
browser.get('http://localhost:8000')
assert 'Django' in browser.title

Notes: (1) It may take about 5 seconds for the sample code (in the referenced answer) to open up the Firefox browser for the specified url. (2) The python console would show the following error if there's no server already running at the specified url or serving a page with the title containing the string 'Django': assert 'Django' in browser.title AssertionError

Herodotus answered 16/4, 2018 at 7:35 Comment(0)
K
3

For those of you who are on Selenium v4.6.0 or above:

We don't have to worry about downloading and setting the path of driver.exe any more. Nor we have to use third party library such as WebDriverManager to handle the browser drivers.

Selenium's new tool known as SeleniumManger can download/handle the browser drivers automatically for us.

Now your Python code can be as simple as:

from selenium import webdriver

driver = webdriver.Chrome()
driver.get("https://www.google.com")

References:

Keheley answered 27/6, 2023 at 11:48 Comment(0)
B
2

When you unzip chromedriver, please do specify an exact location so that you can trace it later. Below, you are getting the right chromedriver for your OS, and then unzipping it to an exact location, which could be provided as argument later on in your code.

wget http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip unzip chromedriver_linux64.zip -d /home/virtualenv/python2.7.9/

Buprestid answered 30/9, 2016 at 16:10 Comment(1)
Or to /usr/local/bin/ to install globally.Skyler
G
2

If you are working with robot framework RIDE. Then you can download Chromedriver.exe from its official website and keep this .exe file in C:\Python27\Scripts directory. Now mention this path as your environment variable eg. C:\Python27\Scripts\chromedriver.exe.

Restart your computer and run same test case again. You will not get this problem again.

Gander answered 15/1, 2018 at 6:2 Comment(0)
C
2

As Aphid mentioned in his comment, if you want to do it manually, you have to include only the directory where your webdriver is stored, not the executable:

Example:

RIGHT:

PATH=$PATH:/path/to/webdriver/folder

WRONG:

PATH=$PATH:/path/to/webdriver/chromedriver.exe


Windows System Variable and CMD Test:

enter image description here

Copalite answered 4/3, 2021 at 18:12 Comment(0)
Z
1

Could try to restart computer if it doesn't work after you are quite sure that PATH is set correctly.

In my case on windows 7, I always got the error on WebDriverException: Message: for chromedriver, gecodriver, IEDriverServer. I am pretty sure that i have correct path. Restart computer, all work

Zebapda answered 17/7, 2017 at 12:50 Comment(0)
A
1

I encountered the same problem as yours. I'm using PyCharm to write programs, and I think the problem lies in environment setup in PyCharm rather than the OS. I solved the problem by going to script configuration and then editing the PATH in environment variables manually. Hope you find this helpful!

Amygdaloid answered 15/7, 2019 at 4:22 Comment(1)
another option is to move your chromedriver directly to the /usr/local/bin, then you're not bothered with adding a path at allAmygdaloid
P
1

When I downloaded chromedriver.exe I just move it in PATH folder C:\Windows\System32\chromedriver.exe and had exact same problem.

For me solution was to just change folder in PATH, so I just moved it at Pycharm Community bin folder that was also in PATH. ex:

  • C:\Windows\System32\chromedriver.exe --> Gave me exception
  • C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\bin\chromedriver.exe --> worked fine
Pledge answered 8/8, 2019 at 17:19 Comment(0)
E
1

Had this issue with Mac Mojave running Robot test framework and Chrome 77. This solved the problem. Kudos @Navarasu for pointing me to the right track.

$ pip install webdriver-manager --user # install webdriver-manager lib for python
$ python # open python prompt

Next, in python prompt:

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())

# ctrl+d to exit

This leads to the following error:

Checking for mac64 chromedriver:xx.x.xxxx.xx in cache
There is no cached driver. Downloading new one...
Trying to download new driver from http://chromedriver.storage.googleapis.com/xx.x.xxxx.xx/chromedriver_mac64.zip
...
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
  • I now got the newest download link
    • Download and unzip chromedriver to where you want
    • For example: ~/chromedriver/chromedriver

Open ~/.bash_profile with editor and add:

export PATH="$HOME/chromedriver:$PATH"

Open new terminal window, ta-da 🎉

Equisetum answered 17/10, 2019 at 8:25 Comment(0)
S
1

As of recent versions, the preferred way to create a chromedriver is to use a service.

Manually set your path like this:

chromedriver_path = "path to your chromedriver executable>"

service = Service(chromedriver_path)
driver = webdriver.Chrome(service=service)
Sparkle answered 5/6, 2022 at 14:27 Comment(0)
B
0

In my case, this error disappears when I have copied chromedriver file to c:\Windows folder. Its because windows directory is in the path which python script check for chromedriver availability.

Binnacle answered 17/5, 2018 at 8:10 Comment(0)
F
0

If you are using remote interpreter you have to also check if its executable PATH is defined. In my case switching from remote Docker interpreter to local interpreter solved the problem.

Floruit answered 14/1, 2019 at 21:25 Comment(0)
V
0

Check the path of your chrome driver, it might not get it from there. Simply Copy paste the driver location into the code.

Vagrancy answered 7/3, 2019 at 4:46 Comment(0)
B
0

Add the webdriver(chromedriver.exe or geckodriver.exe) here C:\Windows. This worked in my case

Blayze answered 28/7, 2019 at 19:6 Comment(0)
W
0

The best way is maybe to get the current directory and append the remaining address to it. Like this code(Word on windows. On linux you can use something line pwd): webdriveraddress = str(os.popen("cd").read().replace("\n", ''))+'\path\to\webdriver'

Whangee answered 29/7, 2019 at 13:59 Comment(0)
I
0

I had this problem on Webdriver 3.8.0 (Chrome 73.0.3683.103 and ChromeDriver 73.0.3683.68). The problem disappeared after I did

pip install -U selenium

to upgrade Webdriver to 3.14.1.

Immutable answered 9/1, 2020 at 20:42 Comment(0)
E
0

The simple solution is that download the chrome driver and move the executable file to the folder from which you run the python file.

Equitant answered 2/2, 2022 at 11:2 Comment(0)
L
0

After testing to check that ChromeDriver is installed

chromedriver

You should see

Starting ChromeDriver version.number 
ChromeDriver was successful

Check the path of the ChromeDriver path

which chromedriver

Use the Path in your code

...
from selenium import webdriver

options = Options()
options.headless = True
options.add_argument('windows-size=1920x1080')

path   = '/usr/local/bin/chromedriver'
driver = webdriver.Chrome(path, options=options)
Locklear answered 14/7, 2022 at 23:33 Comment(0)
L
0

pip install webdriver-manager

If you run script by using python3:

pip3 install webdriver-manager

  • Then in script please use:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
Lysis answered 21/10, 2022 at 11:19 Comment(0)
H
0

Since Selenium 4.6.0, you don't need to manually install Selenium Manager(webdriver-manager) as shown below because it is already included in Selenium according to the blog:

pip install webdriver-manager

And, since Selenium 4.11.0, the code below is basically enough because Selenium Manager can automatically discover your browser version installed in your machine, then can automatically download the proper driver version for it according to the blog:

from selenium import webdriver

driver = webdriver.Chrome()

In addition, the examples below can test Django Admin with Chrome, Selenium, pytest-django and Django. *My answer explains how to test Django Admin with multiple Headless browsers(Chrome, Microsoft Edge and Firefox), Selenium, pytest-django and Django:

# "tests/test_1.py"

import pytest
from selenium import webdriver
from django.test import LiveServerTestCase

@pytest.fixture(scope="class")
def chrome_driver_init(request):
    chrome_driver = webdriver.Chrome()
    request.cls.driver = chrome_driver
    yield
    chrome_driver.close()

@pytest.mark.usefixtures("chrome_driver_init")
class Test_URL_Chrome(LiveServerTestCase):
    def test_open_url(self):
        self.driver.get(("%s%s" % (self.live_server_url, "/admin/")))
        assert "Log in | Django site admin" in self.driver.title

Or:

# "tests/conftest.py"

import pytest
from selenium import webdriver

@pytest.fixture(scope="class")
def chrome_driver_init(request):
    chrome_driver = webdriver.Chrome()
    request.cls.driver = chrome_driver
    yield
    chrome_driver.close()
# "tests/test_1.py"

import pytest
from django.test import LiveServerTestCase

@pytest.mark.usefixtures("chrome_driver_init")
class Test_URL_Chrome(LiveServerTestCase):
    def test_open_url(self):
        self.driver.get(("%s%s" % (self.live_server_url, "/admin/")))
        assert "Log in | Django site admin" in self.driver.title
Haupt answered 4/9, 2023 at 17:12 Comment(0)
L
-1

For mac osx users

    brew tap homebrew/cask
    brew cask install chromedriver

Life answered 11/8, 2020 at 20:55 Comment(1)
That is already answered hereStrickler
L
-1

Test that the filter correctly excludes data that does not meet the specified criteria. Test that the filter correctly includes data that meets the specified criteria. Test that the filter does not exclude any data that should be included. Test that the filter does not include any data that should be excluded. Test that the filter handles null or missing data appropriately. Test that the filter handles large data sets efficiently. Test that the filter can be configured with different combinations of criteria. Test that the filter returns consistent results across multiple runs. Test that the filter can be easily modified or updated without introducing errors. Test that the filter integrates properly with other business processes or applications.

Life answered 14/2, 2023 at 14:42 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewKnuckle
M
-2

For MAC users:

  1. Download Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/downloads

2.In Terminal type "sudo nano /etc/paths"

3.Add line with path to Cromedriver as example: "/Users/username/Downloads"

  1. Try to run your test again!
Manifestation answered 27/9, 2021 at 23:14 Comment(1)
it is explicitly indicated that windows is being usedHumfrey
C
-4

(for Mac users) I have the same problem but i solved by this simple way: You have to put your chromedriver.exe in the same folder to your executed script and than in pyhton write this instruction :

import os

os.environ["PATH"] += os.pathsep + r'X:/your/folder/script/'

Commissariat answered 16/7, 2018 at 14:17 Comment(2)
The solution you are proposing is exactly the same as one of other user. Please pay attention to other answers before posting.Huckster
Isn't @Commissariat saying this to point out it might be a windows-only problem?Protanopia

© 2022 - 2024 — McMap. All rights reserved.