1

I am trying to update my chromedriver.exe file as outlined here.

Python selenium webdriver "Session not created" exception when opening Chrome

The problem is, I do not know the location of the old chromedriver on my Windows machine, and therefore can't update. Any help is appreciated!

Community
  • 1
  • 1
Stuart C
  • 165
  • 3
  • 9

4 Answers4

0

If you check you environment variables and look at the path, assuming this already was working, then the path should exist in there, use that to find where it is located.

Moe Ghafari
  • 2,227
  • 1
  • 12
  • 17
0

If you want to update to the latest chrome driver, download it and keep that path As a First Value (or First row in windows 10) in the PATH, so that the first row will be picked up to look for chromedriver which is latest one.

If you want to remove old driver, (if it was working earlier), then it must be one of the system PATHs. So go through each one.

NORMALLY, people keep the chromedriver in C:\python27\scripts folder (or any python version folder)

Naveen Kumar R B
  • 6,248
  • 5
  • 32
  • 65
0

First of all, you can see the path in the constructor:

driver=webdriver.Chrome('C:\\Path\\to\\chromedriver.exe')

If it's a variable, run in debug and find out the variable value.

Other than that you can simply look for the file in Windows, open Windows Explorer (WinKey + E), than go to the search (Ctrl + E) and type "chromedriver.exe".

Moshisho
  • 2,781
  • 1
  • 23
  • 39
0

In Command Prompt input -

\cd
dir chormedriver.exe /S /P

and the path(s) of the location(s) will print/display with other information.