Re: [Wtr-general] Selecting Links

2006-12-04 Thread Nie Guoqiang
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]L

Re: [Wtr-general] Selecting Links

2006-12-04 Thread Ċ½eljko Filipin
On 12/4/06, Fletch <[EMAIL PROTECTED]> wrote: Is it possible to return the index of the link? I have watir 1.5.1.1081 and it is not supported there. irb(main):005:0> ie.link(:text, "link").index NoMethodError: undefined method `index' for # This looks like interesting feature request (maybe

[Wtr-general] Selecting Links

2006-12-04 Thread Fletch
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