On Tue, Sep 11, 2012 at 7:23 PM, Joe Fl <[email protected]> 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.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to