title: Testing with a selenium driver in Java without opening any browser
body: <p>I need to test with selenium chrome driver in Java. But chrome window should't be opened. Assume this a product and no window should be opened.</p>
  
  <p>I've also looked at this one ;
  <a href="https://stackoverflow.com/questions/1418082/selenium-can-i-hide-the-browser">Is it possible to hide the browser in Selenium RC?</a>
  But no solution for me. The testing should be operating system independent and I've tried HtmlUnitDriver for testing without opening any window but it has some problem. When there is finding components by id, it may not find the component by id. Some servers may send the component id according to browser and I can't know what id I should use to test. </p>
  
  <p>Because of that I'm trying to use chrome driver. </p>
  
  <p><strong>Is there a way to use chromedriver without opening chrome window or another way to test without opening any window with Selenium in Java?</strong></p>
  
  <p>Thank!</p>