title: How do i get Selenium script to connect to chrome using javascript?
body: <p>I'm having trouble connecting to a site via Chrome, I already installed the chromedriver, and followed the instructions from <a href="https://code.google.com/p/selenium/wiki/WebDriverJs" rel="nofollow noreferrer">https://code.google.com/p/selenium/wiki/WebDriverJs</a></p>
  
  <p>is there anything that I'm missing?</p>
  
  <pre><code>var webdriver = require('selenium-webdriver');
  var driver = new webdriver.Builder().
  withCapabilities(webdriver.Capabilities.chrome()).
  build();
  </code></pre>
  
  <p>When I try this using node "filename" I get an:</p>
  
  <pre><code>goog.global.setTimeout(function() { throw exception; }, 0);
  Error: Server terminated early with status 1
  </code></pre>
  
  <p>any ideas as to why this is happening?</p>