There are sample codes using Selenium Server 2 and Selenium::Remote::Driver.