title: How do you use RemoteWebDriver in the javascript language bindings? (Running on Node.js)
body: <p>I am trying to use the javascript language bindings to connect to a RemoteWebDriver, but I am having difficulty getting it to work, and the API documentation does not have any examples for RemoteWebDriver. I've seen a few examples around of something like this supposedly working: </p>
  
  <pre><code>//Javascript example - not working
  const webDriver = new Builder()
      .usingServer(url)
      .withCapabilities(/*don't know what to put here /*)
      .build();
  </code></pre>
  
  <p>I cannot figure which capabilities are needed. A further complication is the remote webdriver I'm connecting to is a home rolled implementation of the protocol. As a test, I got the java version of RemoteWebDriver to work:</p>
  
  <pre><code>//Java example - working
  Capabilities capabilities = new DesiredCapabilities();
  RemoteWebDriver driver;
  driver = new RemoteWebDriver (url, capabilities);
  </code></pre>
  
  <p>I have a strong suspicion that the capabilities I am using in the javascript example are not sufficient, but I cannot figure out what the builder interface is expecting. The default capabilities seem to work in the java version, but what are those?</p>
  
  <p>Any help will be greatly appreciated.</p>