I'm not particularly experienced with Selenium without Watir, but I 
should think that you want to click on the link rather than the text.

Something along the lines of:

.link(:href => "#f2").click

or

.div(:id => "EmpId.outline").link(:index => 1).fire_event("onclick")

Without you showing your nearby code it'll be difficult to know what 
objects you're dealing with, so I don't know the naming conventions 
you're using.

-- 
Posted via http://www.ruby-forum.com/.