[Wtr-general] Selecting Links
Nie Guoqiang
niegq at nec-as.nec.com.cn
Mon Dec 4 05:51:25 EST 2006
Yes
You can access this links by index.
Please refer to ie.show_links()
> 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
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
More information about the Wtr-general
mailing list