Thanks. Its working fine now.

        -----Original Message----- 
        From: [EMAIL PROTECTED] on behalf of Jared Quinert 
        Sent: Mon 7/18/2005 2:17 AM 
        To: [email protected] 
        Cc: 
        Subject: Re: [Wtr-general] How to add the contents of a column in a 
table
        
        

        table()[][].text.to_i works for me...
        
        Jared
        
        Amita Shetty wrote:
        
        >Hi,
        > I have to add up the contents(numbers) of a column and test if the 
sum equates to a value in another cell.
        >Using to_i, to explicitly convert the contents of a cell to an  
integer gives the following error:
        >undefined method `to_i' for #<Watir::TableCell:0x2d9e548> 
(NoMethodError)
        >
        >How else can I do this????
        >
        >
        >Thanks,
        >Amitha
        >
        >
        >_______________________________________________
        >Wtr-general mailing list
        >[email protected]
        >http://rubyforge.org/mailman/listinfo/wtr-general
        >
        >
        >
        >
        > 
        >
        
        
        _______________________________________________
        Wtr-general mailing list
        [email protected]
        http://rubyforge.org/mailman/listinfo/wtr-general
        

<<winmail.dat>>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to