Note: If you are new to java and selenium then start with selenium java training videos . There are times when you don't want a browser popping each time you execute the test. Or you just don't have privilege of having a browser display like in UNIX based system running your CI and not having any display. These are the times when you would find it right to execute your tests in headless browser mode. What we need - Xvfb: X virtual frame buffer is X11 server which does graphical operation in memory, hence no output is displayed. Wikipedia has more on it. Firefox: World famous open source browser A simple selenium test: As simple as launching Google in Firefox First we need to install Xvfb and FF on Ubantu as - sudo apt-get install Xvfb firefox Not you can start Xvfb as - Xvfb :1 -screen 0 1024x768x24 & From manual of Xvfb - -screen screennum WxHxD This option creates screen screennum and sets its width, height, and de...