title: Selenium - chromedriver is not executable
body: <p>I have <code>chromedriver</code> in <code>resources/driver</code> folder of Web Application with executable permission:</p>
  
  <pre><code>➜  drivers git:(master) ✗ ls -l chromedriver
  -rwxrwxrwx  1 arpitaggarwal  staff  11042904 Jul 29 20:14 chromedriver
  ➜  drivers git:(master) ✗ 
  </code></pre>
  
  <p>When I am packaging it as .war, Maven put driver file in <code>classes/drivers</code> folder with permission:</p>
  
  <pre><code>➜  drivers  ls -l chromedriver
  -rw-r--r--  1 arpitaggarwal  staff  11042904 Aug 11 17:49 chromedriver
  </code></pre>
  
  <p>Which is resulting in <code>IllegalStateException</code> as below:</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: The driver is not executable:
    /Users/arpitaggarwal/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/App/WEB-INF/classes/drivers/chromedriver</p>
  </blockquote>
  
  <p>Any idea on how can I fix it?</p>
  
  <p>Thanks.</p>