Waiting for elements to be present 06/08/2012
# Click on the link only when it's present. Timeouts after 30 seconds by default
browser.link(:id => '<link_id>').when_present.click 

# Wait no more than 5 seconds for the element to be available
browser.link(:id => '<link_id>').when_present(5).click 

There are multiple ways to wait for an element to be present on a page. Webdriver waits for elements by default for a configurable amount of time. To have a specific wait time for an element, the approach above can be used.