I wrote a tiny library to make Selenium testing in Ruby a little easier by helping you easily build a jQuery string that can be executed in the browser during a test. This: # this is ruby jquery = SeleniumQuery.new(selenium) id = jquery.find(“td:nth(5).user:visible”).closest(“tr”).attr!(“id”) executes this in the browser: // this is Javascript selenium .browserbot .getCurrentWindow() [...]