title: WebDriverException: Message: 'phantomjs' executable may have wrong permissions
body: <p>Running Selenium locally on flask. Im using the PhantomJS driver. I previously had a path error:</p>
  
  <pre><code>selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH. 
  </code></pre>
  
  <p>But after finding out from another StackOverflow question, I learned that I have to pass the environment path as a parameter for PhantomJS. The path I have below is the path to the phantomJS folder in my virtual environment folder.</p>
  
  <pre><code>driver = webdriver.PhantomJS(executable_path='/Users/MyAcc/Documents/MYWEBAPP/venv/lib/python3.5/site-packages/selenium/webdriver/phantomjs')
  </code></pre>
  
  <p>However, I get a new error-code now:</p>
  
  <pre><code>selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable may have wrong permissions.
  </code></pre>
  
  <p>Here's what I get when I check the file permissions of the path.</p>
  
  <pre><code>total 40 
  drwxr-xr-x 7 USER staff 238 Nov 6 00:07 . 
  drwxr-xr-x 17 USER staff 578 Nov 6 00:03 .. 
  -rw-r--r--@ 1 USER staff 6148 Nov 6 00:07 .DS_Store 
  -rw-r--r-- 1 USER staff 787 Oct 31 12:27 __init__.py 
  drwxr-xr-x 5 USER staff 170 Oct 31 12:27 __pycache__ 
  -rw-r--r-- 1 USER staff 2587 Oct 31 12:27 service.py 
  -rw-r--r-- 1 USER staff 2934 Oct 31 12:27 webdriver.py 
  </code></pre>