when poking around at the page, trying to find attributes of UI elements, it's incredibly useful to open your webpage, start irb, get a new Watir::IE using attach, then just play around with puts $ie.buttons[1] puts $ie.links[12] etc
On Dec 9, 8:20 pm, Marlon <marlonmoja...@gmail.com> wrote: > Hi, > > How can I easy get button index? > > Right now I am using this command > > - $ie.buttons.each { |b| puts b.to_s } > > to get the buttons but it only shows the button attributes but not the > index. Is there any plugin in firefox (aside from firebug) or code > that i can use to easily get it. > > Thanks and keep it up! > > -Marlon -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general