Sarcar, Shourya C (GE Healthcare) wrote:
>> some installation instructions. This "Installation 
>> instruction" text link which calls some javascript functions 
>> are placed twice in the page (once under Windows and once 
>> under linux).
>> With the command "ie.link(:text, /Installation 
>> instruction/).click" I am only able to click the first 
>> occurance of the text, under windows. How to click the second 
>> instance of the same text(i.e, Installation
>> instruction) link, under linux?.
>> 
> 
> Maybe if you send the HTML, more people can help.
> The general idea is that you would have to first reach an enclosing
> element (like a div or a frame) and then search in that constraint.

Attaching the portion of HTML that concerns. As described, I need to 
click on the second text link, "Installation instructions".

Attachments:
http://www.ruby-forum.com/attachment/2910/Watir-text-link.html

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