What are the equivalent directions for Ubuntu?
On your CentOS 6.3 host
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
sudo yum -y install firefox Xvfb libXfont Xorg sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop" (installation takes a few minutes) Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: Xvfb :99 -ac -screen 0 1280x1024x24 & Tell all XWindows applications in this terminal session to use the new Xvfb display port: export DISPLAY=:99 Start the Selenium server, eg: java -jar /opt/selenium-server-standalone.jar & Now start your Selenium tests. The Selenium server should spawn a headless Firefox instance and your tests should run successfully.
https://gist.github.com/textarcana/5855427
I ask because I use Gradle, so this is in the context of making a Gradle task, or, without using jar, just the default gradle run
task with xvfb
.
Preferably, how do I run the gradle run
task through xvfb?
Current usage:
thufir@mordor:~/NetBeansProjects/selenium$
thufir@mordor:~/NetBeansProjects/selenium$ gradle run
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:run
http://thufir.github.io/javascript/
^Cthufir@mordor:~/NetBeansProjects/selenium$