Anaconda selenium and Chrome
<p>I am running selenium through anaconda on my mac. To be able to choose Chrome as my webdriver I need to download the latest chromedriver. But I can't figure out where to put the file for it to be in path.
If I just run</p>
<pre><code>driver = webdriver.Chrome()

WebDriverException: Message: unknown error: cannot find Chrome binary
</code></pre>
<p>Should I put chromedriver in <code>anaconda/lib/python2.7/site-packages/selenium/webdriver/</code> and if so how do I specify selenium to use it?</p>
<p>I know it has to be something simple, since I have already set up chromedriver on my other computer like a year ago, but I don't have access to it right now.</p>
<p>EDIT:
tried this</p>
<pre><code>import os
from selenium import webdriver

chromedriver = &quot;/Users/username/Downloads/chromedriver&quot;
os.environ[&quot;webdriver.chrome.driver&quot;] = chromedriver
driver = webdriver.Chrome(chromedriver)
driver.get(&quot;http://stackoverflow.com&quot;)
driver.quit()
</code></pre>
<p>Got this error:</p>
<pre><code>WebDriverException: Message: unknown error: cannot find Chrome binary
  (Driver info: chromedriver=2.23.409710 (0c4084804897ac45b5ff65a690ec6583b97225c0),platform=Mac OS X 10.11.6 x86_64)
</code></pre>