title: How run 2 and more nodes on same selenium hub programmatically(without console)
body: <p>I can run 1 node on selenium grid hub.</p>
  
  <p>Here is snippet of my code.</p>
  
  <pre><code>        GridHubConfiguration config = new GridHubConfiguration()
          config.setHost("localhost")
          config.setTimeout(60000000)
          Hub hub = new Hub(config)
          hub.start()
  
          RegistrationRequest req = new RegistrationRequest()
          req.setRole(GridRole.NODE)
  
  
          Map&lt;String, Object&gt; nodeConfiguration = new HashMap&lt;String, Object&gt;();
  
          nodeConfiguration.put(RegistrationRequest.PROXY_CLASS, "org.openqa.grid.selenium.proxy.DefaultRemoteProxy")
          nodeConfiguration.put(RegistrationRequest.MAX_SESSION, 25)
          nodeConfiguration.put(RegistrationRequest.PORT, 5555)
          nodeConfiguration.put(RegistrationRequest.HOST, hub.getHost())
          nodeConfiguration.put(RegistrationRequest.AUTO_REGISTER, true)
          nodeConfiguration.put(RegistrationRequest.REGISTER_CYCLE, 5000)
          nodeConfiguration.put(RegistrationRequest.HUB_HOST, hub.getHost())
          nodeConfiguration.put(RegistrationRequest.HUB_PORT, hub.getPort())
          URL remoteURL = new URL("http://" + hub.getHost() + ":" + 5555)
          nodeConfiguration.put(RegistrationRequest.REMOTE_HOST, remoteURL)
  
          req.setConfiguration(nodeConfiguration)
  
          DesiredCapabilities capabilities = DesiredCapabilities.chrome()
          capabilities.setCapability("browserName","chrome")
          capabilities.setCapability("maxInstances",25)
          capabilities.setCapability("seleniumProtocol","Selenium")
  
          req.setCapabilities([capabilities]);
  
          SelfRegisteringRemote remote = new SelfRegisteringRemote(req)
          remote.startRemoteServer()
          remote.startRegistrationProcess()
  </code></pre>
  
  <p>I have 3 problems..</p>
  
  <ol>
  <li>As you can see I set MAX_SESSION and maxInstances to 25, although I can't run more than 10 Chrome driver Instances, maybe I did something wrong or maybe it is a bug?</li>
  <li>How run 2 and more nodes on same selenium hub programmatically(without console) ?</li>
  <li>How run web driver in headless mode? There is a very usefull link <a href="http://www.seleniumtests.com/2012/04/headless-tests-with-firefox-webdriver.html" rel="nofollow">
  Headless tests with Firefox and Chrome WebDriver</a>, but I couldn't find out how do it for Selenium grid.</li>
  </ol>
  
  <p>I am using <strong>selenium-server-standalone-2.40.0.jar</strong></p>