Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-14 Thread Željko Filipin
On Fri, Sep 14, 2012 at 7:14 PM, Joe Fl wrote: > Do you mean > puts r = @browser.div(:id,'main').tr(:class,'middle').td(:class,'middleCenter').div(:class,'middleCenterInner').table(:index,0)[0][2].text Yes, something like that. Did you try it? Željko -- Before posting, please read http://watir

Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-14 Thread Joe Fl
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: > >

Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-14 Thread Željko Filipin
Just add ".text" (without quotes) to the end. Like this: browser.table.text Zeljko On 14. 9. 2012., at 17:51, Joe Fl 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(:

Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-14 Thread Joe Fl
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: # How do I get the text

Re: [wtr-general] Using cols and rows to retrieve data from a table

2012-09-11 Thread Željko Filipin
On Tue, Sep 11, 2012 at 7:23 PM, Joe Fl 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). I am not sure w

[wtr-general] Using cols and rows to retrieve data from a table

2012-09-11 Thread Joe Fl
Hi Everyone, I am using watir-webdriver API and would like to retrieve the column name and data from a table. *Html:* Analysis Item Name Created On Modified On Calculated On Altered Test analysis 8/29/12 10:40 AM 8/29/12 2:0