Erik A. Hanson's Weblog

Archive for the 'Selenium' Category

SeleniumQuery

Posted: Sunday, May 23rd, 2010    Tags: Ruby, Selenium, jQuery

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() [...]

Solutions To Slow Test Suites

Posted: Friday, June 5th, 2009    Tags: Selenium, Unit Testing

As a proponent of test driven development, I’m naturally a big fan of writing automated tests. Often, clients who are new to writing automated tests start out by writing big integration tests (with tools like Selenium). This is an easy way to start testing an app that wasn’t written with testability in mind. Unfortunately, these [...]