title: Jenkins running selenium tests without opening browser
body: <p>I browsed a lot on this topic. There are different variations of this question or no answer to fix my issue. Any help is appreciated.</p>
  
  <ol>
  <li>I have installed firefox on my VM as root in <code>/usr/bin/firefox</code>. </li>
  <li>I downloaded the maven project to run selenium tests, and run it
  manually on my VM using <code>mvn clean install</code> command. This opens the
  browser and also successfully runs the test. </li>
  <li>Now I run Jenkins as myself ( <code>JAVA_HOME</code> is <code>/usr/java/latest</code> and started the service as
  <code>nohup java -jar jenkins.war --httpPort=-1 --httpsPort=8082</code>; version
  is 1.522). </li>
  <li>Create a new freestyle s/w project; Configure the job
  to download the maven project and invoke maven target 'clean
  install';  </li>
  <li>When I run the job, I can see the steps in the console
  output but the browser is not opening. It also locks up my AD account.</li>
  </ol>
  
  <p>Why is this happening? What is the fix?</p>