I'm attempting to use Selenium with Python on a Mac.
from selenium import webdriver
browser = webdriver.Firefox()
I get these errors:
FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver'
During handling of the above exception, another exception occurred:
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
I've tried a number of different solutions, including altering my $PATH to add the location geckodriver is installed (see here), and placing the geckodriver executable file in usr/local/bin, per the documentation on Pypi.python.org for my version of Selenium (3.0.2).
$PATH now includes the path to where geckodriver is, but I continue to get the above errors. Any ideas?
I'm running Python 3.5.