I'm running a Linux server and I'm working with Selenium.
so i made a test case with Selenium (to check a website) , i exported it to a java file, and i did actually everything i need to do to get this to work BUT when i run the script like
./check_selenium.sh -b "http://www.google.com" -c "some.folder.name.Rc" -t "*firefox"
and then i get this error:
UNKNOWN - some.folder.name.Rc: Got some problems: java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser |;;;;
(btw, i still didn't found the solution of that error...)
but the main thingie is that the test must be done in the background, no need to open a webbrowser and let everything run and than close the webbrowser, i just need it to test the website and give me back some result.
And i've read some articles about how to run it headless, and with XVFB is the one that pops out...
I installed it with
I've found some code that normally should work
startx -- `which Xvfb` :1 -screen 0 1024x768x24
but now what?
Can someone help me pls how i should run my testcase of selenium on the background (perhaps with Xvfb?)