[wtr-general] Re: Iterating through an unordered list
On Fri, Oct 9, 2009 at 12:26 AM, George wrote: > I didn't see the method 'lis' And we have a wiki page that talks about `lis` and similar methods: http://wiki.openqa.org/display/WTR/Collections+of+HTML+Elements Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Iterating through an unordered list
Hey there, Yep, that did it! I didn't see the method 'lis' listed when I did this: @browser.div(:id, "ctl00_cphMain_validationSummary").ul(:class, "VAMValSummaryErrors").methods.sort Oh well, glad it was available for me to use. Thanks a lot! On Oct 8, 2:59 pm, orde wrote: > something like this(?): > > browser.lis.each do |x| > puts x.text > end > > Hope that helps. > > On Oct 8, 2:09 pm, George wrote: > > > > > Hello everyone, > > > Is it possible to iterate each line item () text in an unordered > > list ()? > > > Thanks, > > > George --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Iterating through an unordered list
something like this(?): browser.lis.each do |x| puts x.text end Hope that helps. On Oct 8, 2:09 pm, George wrote: > Hello everyone, > > Is it possible to iterate each line item () text in an unordered > list ()? > > Thanks, > > George --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---