puts browser.div(:class, "system").text will print 123456 To see all tables on a page, use the show_tables method: http://rdoc.info/gems/watir/1.8.1/Watir/IE#show_tables-instance_method
Hope it helps. orde On May 5, 3:14 am, Ashu <ashay.n...@gmail.com> wrote: > Is there an alternative wherein I can list all the tables and then > locate the particular desired text? > Thanks... > > On May 5, 1:48 pm, Ashu <ashay.n...@gmail.com> wrote: > > > > > > > > > Well I tried it, > > but since there doesnt exist any cell in the HTML, hence it does > > return with a error. > > > On May 5, 12:54 pm, Željko Filipin <zeljko.fili...@wa-research.ch> > > wrote: > > > > On Thu, May 5, 2011 at 9:40 AM, Ashu <ashay.n...@gmail.com> wrote: > > > > on trying the above I get the following error > > > > :undefined method 'td' for #<FireWatir::Firefox:ox:0x32de718 url="" > > > > title="company:network"><nomethoderror> > > > > Try this then: > > > > puts browser.cell(:id => "e0_id").text > > > > Željko -- 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