Before you rate me, I must say that I read almost every answer on this site about who had my same problem, but i found no answer.
For example there the one who asked the question accepted the first answer, but copy-pasting the code in the answer the same error was raised.
An other example there where is linked this video, which doesn't explain much, but there no error is raised, instead of my code when I copied it from the video. (he doesn't write .exe, so probably an error would be found in his code too)
This one has exactly my same problem, so it would be perfect, but no answer was accepted.
Here's the last line of the error:
selenium.common.exceptions.WebDriverException: Message: 'chrome.exe %s' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
At the end of the exception message there's a link, which says they migrated to another site.
The error message here:
FileNotFoundError: [WinError 2] Impossibile trovare il file specificato
During handling of the above exception, another exception occurred:
#Something else beetwen
selenium.common.exceptions.WebDriverException: Message: 'chrome.exe %s' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Here's the beginning of my code:
from selenium import webdriver
chrome_path = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s"
driver = webdriver.Chrome(executable_path=chrome_path)
I'm sure the path is correct, 'cause I copy-pasted it from the chrome.exe properties.
I also tried it without %s, and it raises a different error:
selenium.common.exceptions.WebDriverException: Message: Service C:/Program Files (x86)/Google/Chrome/Application/chrome.exe unexpectedly exited. Status code was: 0
Can someone help explaining me what's wrong?
Thanks
EDIT
I searched with file explorer for "chromedriver", and nothing was found.