title: selenium: 'geckodriver' executable may have wrong permissions
body: <p>My setup:</p>
  
  <ul>
  <li>MacOS 10.12.3 virtual env.</li>
  <li>I've <a href="http://selenium-python.readthedocs.io/installation.html#downloading-selenium-server" rel="nofollow noreferrer">installed</a> selenium via <code>pip install selenium</code> (3.3.1).</li>
  <li>I've installed geckodriver via <code>brew install geckodriver</code> 0.15.0</li>
  </ul>
  
  <p>Trying to run the following <a href="http://selenium-python.readthedocs.io/getting-started.html" rel="nofollow noreferrer">code</a> in intelliJ IDE:</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  
  driver = webdriver.Firefox(executable_path='/usr/local/opt/geckodriver')
  driver.get("https://google.com")
  elem = driver.find_element_by_name("q")
  </code></pre>
  
  <p>and Exception is thrown from the 4th line (<code>driver = webdriver...</code>):</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/itayb/test/main.py", line 4, in &lt;module&gt;
      driver = webdriver.Firefox(executable_path='/usr/local/opt/geckodriver')
    File "/Users/itayb/test/venv/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 145, in __init__
      self.service.start()
    File "/Users/itayb/test/venv/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 86, in start
      os.path.basename(self.path), self.start_error_message)
  selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable may have wrong permissions. 
  
  
  Process finished with exit code 1
  </code></pre>
  
  <p>must say that the <code>executable_path</code> was added after trying to see some answers <a href="https://stackoverflow.com/questions/40208051/selenium-using-python-geckodriver-executable-needs-to-be-in-path/42260873#42260873">here in SO</a>.
  The bin file (<code>geckodriver</code> is excute from command line without any problem).
  How do I fix that?</p>