As I discovered, it should be present in the PATH and then Selenium becomes able to find it.
The easiest way to do so is to install in via homebrew:
brew install geckodriver
And then it is necessary to replace in the script all lines that create a driver from driver = webdriver.Firefox(executable_path=geckopath) to driver = webdriver.Firefox().
As I discovered, it should be present in the PATH and then Selenium becomes able to find it. The easiest way to do so is to install in via homebrew:
And then it is necessary to replace in the script all lines that create a driver from
driver = webdriver.Firefox(executable_path=geckopath)
todriver = webdriver.Firefox()
.