title: Passing require('chromedriver).path directly to selenium-webdriver
body: <p><strong>tl;dr:</strong> <em>Does anyone know how to pass the path of chromedriver to selenium-webdriver in code without setting the PATH environment variable?</em></p>
  
  <p>I'm attempting to use selenium-webdriver with chrome, but would prefer to not physically install chromedriver and manipulate the path. I have the following code:</p>
  
  <pre><code>var webdriver = require('selenium-webdriver');
  var driver = new webdriver.Builder().
      withCapabilities(webdriver.Capabilities.chrome()).
      build();
  </code></pre>
  
  <p>Without chromedriver set in the path, this throws the error:</p>
  
  <pre><code>Error: The ChromeDriver could not be found on the current PATH. Please download the latest 
  version of the ChromeDriver from http://chromedriver.storage.googleapis.com/index.html and 
  ensure it can be found on your PATH.
  </code></pre>
  
  <p>I'd prefer not have to setup my path, so I've installed chromedriver from npm and added to my package.json:</p>
  
  <pre><code>"scripts": {
      "preinstall-chromedriver": "npm install",
      "install-chromedriver": "node node_modules/chromedriver/install.js",
      "pretest_e2e": "npm run install-chromedriver",
      "test_e2e": "node release/test/rune2e.js"
  },
  </code></pre>
  
  <p>Now I have chromedriver installed and can get the path with <code>require('chromedriver').path</code>, but I have no way of passing this to the selenium-webdriver. Anyone know?</p>