Sarcar, Shourya C (GE Healthcare)
11/10/2008 12:07:00 PM
> -----Original Message-----
> From: mbaruah@spikesource.com [mailto:mbaruah@spikesource.com]=20
> Sent: Monday, November 10, 2008 4:13 PM
> To: ruby-talk ML
> Subject: Watir: links with similar text in a page. How to access?
>=20
> Hi All,
>=20
> I need Help!
> In a page I am having two section(windows and linux) with has=20
> some installation instructions. This "Installation=20
> instruction" text link which calls some javascript functions=20
> are placed twice in the page (once under Windows and once=20
> under linux).
> With the command "ie.link(:text, /Installation=20
> instruction/).click" I am only able to click the first=20
> occurance of the text, under windows. How to click the second=20
> instance of the same text(i.e, Installation
> instruction) link, under linux?.
>=20
Maybe if you send the HTML, more people can help.=20
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.