Starting selenium server from java in the background Starting selenium server from java in the background selenium selenium

Starting selenium server from java in the background


Well, it wasn't that hard (at least on windows). I used to start selenium server like this:

java -jar selenium-server-xxx.jar <options>

To start it without console I just use javaw:

javaw -jar selenium-server-xxx.jar <options>


Create a windows .bat file and run the .bat file to start the selenium server. You can also include your test classes and dependencies.

eg:

java -cp ".;.\supportlibraries\junit4.11.jar;.\supportlibraries\poi-3.8-20120326.jar;D:\downloads\Selenium 2.0\selenium-server-standalone-2.45.0.jar" org.junit.runner.JUnitCore [classname]