In this tutorial I’ll outline two ways I have been working with Selenium in PHP and Ruby to do headless testing and screenshots on Ubuntu. These guides were done using Ubuntu-Server 12.04 LTS 64bit.
Headless Selenium Ruby Version
Here is a simple ruby test script:
Headless Selenium PHP Version
The above installation works with a few lines of PHP using the FaceBook web driver.
Executing the above script has the following Selenium output: