[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105
Hi Friends, I got the solution, when i run the code it returns the TableCell only not the string. Then i modified the code as below and works well. real = ie.frame(:id,wfFrame).table (:id,lkpTradingPartnerType_LkpTblRows) [2] [1] list = ie.frame(:id,wfFrame).table

[wtr-general] Re: operator not working

2008-12-02 Thread LFIdnl
Or you can execute puts real.length; puts list.length . That shows you what the length of stings On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote: May be your variable 'real' and 'list' have another not visible character like as whitespace. Try exucuite puts '#{real}'; puts '# {list}' . Result

[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105
Thanks Tony for your solution, it works... Thanks, Prince3105 On Dec 2, 2:34 pm, Prince3105 [EMAIL PROTECTED] wrote: Hi Friends, I got the solution, when i run the code it returns the TableCell only not the string. Then i modified the code as below and works well. real =

[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105
Thanks for your reply, When i use first method it returns, 'AO' 'HQ' When i use length method it returns one error ADM0005.rb:20: undefined method `length' for #Watir::TableCell: 0x41bc250 (NoMethodError) But i insert one code below like a = abcd puts a.length it returns the correct answer

[wtr-general] Re: operator not working

2008-12-02 Thread Tony
Hi, Got the error - real = ie.frame(:id,wfFrame).table (:id,lkpTradingPartnerType_LkpTblRows) [2] [1] The above statement returns an object of Watir::TableCell and the length for this will not be the string length. Maybe the == also is not working due to this. Do the below real =