Do you mean puts r = @browser.div(:id,'main').tr(:class,'middle').td(:class,'middleCenter').div(:class,'middleCenterInner').table(:index,0)[0][2].text
Joe On Friday, September 14, 2012 12:20:42 PM UTC-4, Željko Filipin wrote: > > Just add ".text" (without quotes) to the end. > > Like this: > > browser.table.text > > Zeljko > > On 14. 9. 2012., at 17:51, Joe Fl <joefl...@gmail.com <javascript:>> > wrote: > > Hi Željko, > > Yes. I trying to pull data for a table based on the column, row. I have > tried the following: > > puts rede = > @browser.div(:id,'main').tr(:class,'middle').td(:class,'middleCenter').div(:class,'middleCenterInner').table(:index,0)[0][2] > > and this is the response: > #<Watir::TableCell:0x101e1f440> > > How do I get the text from this? Or could it be I haven't dug deep enough > to the right table? > > Thanks again for your help. > Joe > > On Tuesday, September 11, 2012 5:04:26 PM UTC-4, Željko Filipin wrote: >> >> On Tue, Sep 11, 2012 at 7:23 PM, Joe Fl <joefl...@gmail.com> wrote: >> > What I would like to do is grab the data from table based on a specific >> column and row with the flexibility of change. >> > Example: >> > >> @browser.div(:id,'main').td(:class,'middleCenter').div(:class,'middleCenterInner').table(:index,12).<column_value(1,2)> >> >> I am not sure what you want to do. I will assume that >> "<column_value(1,2)>" means you want to access the second td in the first >> row. >> >> Try this (not tested): >> >> browser.table[0][1] >> >> Ruby (and Watir) are zero based (counting starts at 0), not one based >> (counting starts at 1). >> >> Željko >> -- >> filipin.eu >> > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-...@googlegroups.com <javascript:> > http://groups.google.com/group/watir-general > watir-genera...@googlegroups.com <javascript:> > > -- 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