Python solution: selenium.common.exceptions.WebDriverException: Message:'chromedriver'

Project scene [pyechart]

When I used make_snapshot(snapshot, bar.render(), "bar.png"), selenium.common.exceptions.WebDriverException: Message:'chromedriver' appeared. Now let's solve it.


Insert picture description here


# Problem Description:

If this happens, let’s take a look. It’s because the internal version of chromedriver.exe is not compatible, or there is no chromedriver.exe. Now check the version of Google Chrome chrome://version/

Insert picture description here

solution:

Insert picture description here

I am the 75 version, now come here to download the exe.
http://chromedriver.storage.googleapis.com/index.html

Insert picture description here

I downloaded this 75, and everyone downloads it according to their own Google version, otherwise there will be errors.


And put them in this path.

One is under the path of C drive, the specific location: C:\Program Files (x86)\Google\Chrome\Application

Insert picture description here

The other is in the directory where your python is installed

Insert picture description here

Finally, let's run it again, and we can find that it has been solved! !

Guess you like

Origin blog.csdn.net/XRTONY/article/details/114801816