From: "Sarcar, Shourya C (GE Healthcare)" Date: 2008-11-10T21:07:16+09:00 Subject: Re: Watir: links with similar text in a page. How to access? > -----Original Message----- > From: mbaruah@spikesource.com [mailto:mbaruah@spikesource.com] > Sent: Monday, November 10, 2008 4:13 PM > To: ruby-talk ML > Subject: Watir: links with similar text in a page. How to access? > > Hi All, > > I need Help! > In a page I am having two section(windows and linux) with has > 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.