Bis and Željko thank you. this works
@b.divs(:class,"formError").each{|div|puts div.text} On Tue, Dec 20, 2011 at 4:35 PM, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > > On Tue, Dec 20, 2011 at 7:51 PM, Joe Fl <joeflec...@gmail.com> wrote: > > I want to retrieve the text listed in the alert class listed below. > > browser.div(:class => "alert").divs.each {|div| puts div.text} > > Željko > -- > watir.com/book - author > > -- > 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 -- 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