On Wed, Oct 12, 2011 at 3:32 PM, Joe Fl <joeflec...@gmail.com> wrote: > I am trying to get the number of checkboxes within a window.
browser.checkboxes.size returns: 1 > I want > to get the value of each one without knowing which one I will be > using. browser.checkboxes.each {|checkbox| puts checkbox.value} output: 90 > I would like to get the number of <li> b.lis.size returns: 8 > and then loop through and get > the value which I need for later in my script. b.lis.each {|li| puts li.text.inspect} returns: "Ambulatory/ Outpatient Care" "" "" "" "" "" "" "" Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com