2

The Selenium WebDriver for Python video I'm watching instructs me to copy ChromeDriver to /usr/local/bin. When I view my $PATH, I can see /usr/local/bin, but if I cd to /usr/local/bin it says the directory does not exist.

echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

cd /usr/local/bin
-bash: cd: /usr/local/bin: Not a directory

Python came pre-installed in OS 10.9.5 and it's in /usr/bin. Should I just copy ChromeDriver to /usr/bin?

2

You can put ChromeDriver wherever you like if you specify the path:

chromedriver_path = "<path_to_chromedriver>"

driver = webdriver.Chrome(executable_path=chromedriver_path)

It's really up to you if you want in usr/local/bin or elsewhere.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.