I have tried various SO solutions on going about this. System Config:
- MacOS Catalina
- Python 3.7.6 (Anaconda)
- Selenium 3.141
Chrome v81, ChromeDriver v81.
Error: Can not connect to the service chromedriver.
I have tried the same with various driver and browers: Gecko/Firefox(Fresh install), Safaridriver/Safar - all with the same error.
The chromedriver, geckodriver are in PATH as well as usr/local/bin.
Code to reproduce:
from selenium import webdriver
chromedriver = '/usr/local/bin/chromedriver'
driver = webdriver.Chrome(chromedriver)
I have also tried various solutions, executable_path=chromedriver
and hosts file with localhost 127.0.0.1 entry
.
chromedriver by itself runs perfectly, without any issues, it just can't seem to connect to Selenium.
Any help, if possible will be appreciated.
Expected results: Selenium connects to driver
Actual Results: raise WebDriverException("Can not connect to the Service %s" % self.path)
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /usr/local/bin/chromedriver
Solutions already tried:
And other solutions on SO.