[Wtr-general] Selecting Links

Fletch forum-watir-users at openqa.org
Mon Dec 4 03:59:42 EST 2006


Hello All,

I have a form which has the following layout
[u]Link1[/u]           Button
[u]Link2[/u]           Button
[u]Link3[/u]           Button

I want to be able to use WATIR to click the button beside [u]Link2[/u], my thinking is that I want to get the index of the link containing text "Link2" and then use this value to - Button(:index, linkIndex).click

Is it possible to return the index of the link?

Thanks,

PMF.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5594&messageID=15602#15602


More information about the Wtr-general mailing list