On Thu, Dec 10, 2009 at 3:20 AM, Marlon <marlonmoja...@gmail.com> wrote: > How can I easy get button index?
counter = 1 browser.buttons.each do |button| puts "index: #{counter}" puts button.to_s puts counter += 1 end Please let me know if you would like me to comment the code. Željko -- watir.com - community manager watirpodcast.com - host -- 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