#Cycles through all the li Tags counter = 0 $ie.div(:attribute,attribute_valu).lis.each {|li| counter = counter + 1 }
On Nov 24, 10:48 am, Natasha <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a shortcut code for looping through all the LI elements > within a DIV tag? > > I want to find number of LI elements within a DIV tag having id, > 'listImages'. > > Also want to find id's of those LI elements. > > Thanks, > Natasha --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---