I\'ve looked around checked both documentations and have found no answer.
I\'ve been trying to use InstaPy a instagram api for python. After failing with multiple er
if you are using chrome you must specify the full path of the chromedriver. search for the directory in which your chromedriver executable file resides. click shift+right click on the executable file. select "copy as path" and paste it in your script. don't forget to use a double backslash
so it should be:
driver = webdriver.Chrome('C:\\Utility\\BrowserDrivers\\chromedriver.exe')
This error message...
WebDriverException: Message: 'Webdrivers' executable may have wrong permissions.
...implies that the ChromeDriver variant you are trying to use have wrong permissions.
You seem to have tried out:
driver = webdriver.Chrome('C:\Webdrivers') # Optional argument, if not specified will search system $PATH variable.
A few words:
If your underlying os is windows:
(/)
along with the raw (r)
switch or you have to use the escaped backslash i.e. (\\)
.So your effective line of code will be :
driver = webdriver.Chrome(executable_path=r'C:/path/to/chromedriver.exe')
If your underlying os is linux:
(/)
.So your effective line of code will be :
driver = webdriver.Chrome(executable_path='/path/to/chromedriver')
If your underlying os is macos:
chromedriver
binary path you have to use the single forward slash i.e. (/)
.So your effective line of code will be :
driver = webdriver.Chrome(executable_path='/path/to/chromedriver')
You need to add exe at the end of the path of driver and it works.
I got the same error when wrongly installed drives(when for mac was downloaded windows drivers) once I correct it worked fine
This got solved when you enter the full file name which is "chromedriver.exe". Try this if you are on windows