webbot icon indicating copy to clipboard operation
webbot copied to clipboard

cannot find Chrome binary

Open moinologics opened this issue 3 years ago • 12 comments

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

running on windows 10

Note - selenium working fine

moinologics avatar Mar 18 '21 19:03 moinologics

Step 1: Open cmd and fire pip command pip install webbot

Step 2: check your chrome version go to Menu -> Help -> About Google Chrome

Step 3: Download chrome driver as per the chrome version from below link https://sites.google.com/a/chromium.org/chromedriver/downloads

Step 4: extract the driver file and save it to, C:\Users%USERNAME%\AppData\Local\Programs\Python\Python39\lib\site-packages\webbot\drivers\

Step 5: In drivers forlder, make copy of chrome_windows (Simply copy the file & paste it in same folder) new file will be like "chrome_windows - Copy.exe" and delete the original "chrome_windows.exe"

Step 6: Rename the extracted file "chromedriver.exe" to "chrome_windows.exe"

manwapri avatar Jul 08 '21 04:07 manwapri

I did all that, it did not work

Step 1: Open cmd and fire pip command pip install webbot

Step 2: check your chrome version go to Menu -> Help -> About Google Chrome

Step 3: Download chrome driver as per the chrome version from below link https://sites.google.com/a/chromium.org/chromedriver/downloads

Step 4: extract the driver file and save it to, C:\Users%USERNAME%\AppData\Local\Programs\Python\Python39\lib\site-packages\webbot\drivers\

Step 5: In drivers forlder, make copy of chrome_windows (Simply copy the file & paste it in same folder) new file will be like "chrome_windows - Copy.exe" and delete the original "chrome_windows.exe"

Step 6: Rename the extracted file "chromedriver.exe" to "chrome_windows.exe"

Viktigboy avatar Nov 02 '21 16:11 Viktigboy

which browser you are using? please post the error you got.

manwapri avatar Nov 02 '21 16:11 manwapri

bilde

Viktigboy avatar Nov 02 '21 16:11 Viktigboy

yes, its a chrome driver issue, update your chrome, 95 is the latest version, download driver for same version ie driver version 95, then replace in webbot driver directory. done.

manwapri avatar Nov 02 '21 16:11 manwapri

yes, its a chrome driver issue, update your chrome, 95 is the latest version, download driver for same version ie driver version 95, then replace in webbot driver directory. done.

i did. getting the same error.

Viktigboy avatar Nov 02 '21 16:11 Viktigboy

where did you replace the driver, share the path here.

manwapri avatar Nov 02 '21 16:11 manwapri

C:\Users\me\AppData\Local\Programs\Python\Python39\Lib\site-packages\webbot\drivers

Viktigboy avatar Nov 02 '21 16:11 Viktigboy

the image you have uploaded above, see the line no 4, go to that path, you have python version 3.10, in my example its 3.9.

Dont get me wrong, walk on the showed path, dont copy it.

manwapri avatar Nov 02 '21 16:11 manwapri

see the line no 4,

so i am going to downgrade python?

Viktigboy avatar Nov 02 '21 17:11 Viktigboy

no need to downgrade, see the path in image, line no 4, go to that path and replace the driver.

manwapri avatar Nov 02 '21 20:11 manwapri

Step 1: Open cmd and fire pip command pip install webbot

Step 2: check your chrome version go to Menu -> Help -> About Google Chrome

Step 3: Download chrome driver as per the chrome version from below link https://sites.google.com/a/chromium.org/chromedriver/downloads

Step 4: extract the driver file and save it to, C:\Users%USERNAME%\AppData\Local\Programs\Python\Python39\lib\site-packages\webbot\drivers\

Step 5: In drivers forlder, make copy of chrome_windows (Simply copy the file & paste it in same folder) new file will be like "chrome_windows - Copy.exe" and delete the original "chrome_windows.exe"

Step 6: Rename the extracted file "chromedriver.exe" to "chrome_windows.exe"

Works for me, thanks!

piechowiakmichal avatar Nov 19 '21 07:11 piechowiakmichal