Something like this should work:

browser.link(:index=>0, :text=>"Share").click

Watir uses zero-based indexing (although I think firewatir is
different).  So, the example above would click on the first link where
the text is "Share".

Hope it helps.

On Mar 11, 3:09 pm, Shlomit Gazit <shlomitpatr...@gmail.com> wrote:
> I need to look for the word 'Share' in related to different texts in
> different places in the page, but the link has the same properties.
> How can I distinguish. Any ideas?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to