geckodriver executable needs to be in path
<p>I have read previous questions asked on this topic and tried to follow the suggestions but I continue to get errors. On terminal, I ran </p>

<pre><code>export PATH=$PATH:/Users/Conger/Documents/geckodriver-0.8.0-OSX
</code></pre>

<p>I also tried</p>

<pre><code>    export PATH=$PATH:/Users/Conger/Documents/geckodriver
</code></pre>

<p>When I run the following Python code</p>

<pre><code>from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities


firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
firefox_capabilities['binary'] = '/Users/Conger/Documents/Firefox.app'

driver = webdriver.Firefox(capabilities=firefox_capabilities)
</code></pre>

<p>I still get the following error</p>

<pre><code>Python - testwebscrap.py:8
Traceback (most recent call last):
  File "/Users/Conger/Documents/Python/Crash_Course/testwebscrap.py", line 11, in &lt;module&gt;
    driver = webdriver.Firefox(capabilities=firefox_capabilities)
  File "/Users/Conger/miniconda2/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 135, in __init__
    self.service.start()
  File "/Users/Conger/miniconda2/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 71, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

Exception AttributeError: "'Service' object has no attribute 'process'" in &lt;bound method Service.__del__ of &lt;selenium.webdriver.firefox.service.Service object at 0x1006df6d0&gt;&gt; ignored
[Finished in 0.194s]
</code></pre>

<p>First we know that gekodriver is the driver engine of Firefox,and we know that
      <code>driver.Firefox()</code> is used to open Firefox browser, and it will call the gekodriver engine ,so we need to give the gekodirver a executable permission.
so  we download the latest gekodriver uncompress the tar packge ,and put gekodriver at the <code>/usr/bin/</code>
ok,that's my answer and i have tested.</p>

python