From: Xavier Noria Date: 2006-07-09T08:58:18+09:00 Subject: Re: WAtir usage On Jul 8, 2006, at 22:04, Xavier Noria wrote: > On Jul 8, 2006, at 19:25, junkone@rogers.com wrote: > >> Hi >> I found Watir and am excited to use it. I cannot find much >> examples in >> terms of data scraping. I have gotne to a point wherei can use it to >> submit form details. >> I need to scrape data from the tables etc. How do i do it. >> For eg my if ie is my browser object, how do i get the tables in the >> page and extract data from 3 table in the page into a array? > There you see what can be done grabbing the ie attribute of the > Watir::IE object, in case the wrapping interface does not address > some particular need. Additionally, I have found reading watir.rb > very instructive, you have a better knowledge of what you are doing > and may give context and idioms. By the way, regarding the question about tables you can do this: table = ie.table(:index, 3) That index is 1-based and returns an object of type Watir::Table or nil. As per the definition of order between tables, it is delegated to IE this way: @ieController.document.getElementsByTagName("TABLE") -- fxn