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 = ie.fram
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
(:id,"lkpTradingPartnerT
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 = ie.frame(:i
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 # (NoMethodError)
But i insert one code below like
a = "abcd"
puts a.length
it returns the correct answer 4. Totally i confused.. P
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}'"
May be your variable 'real' and 'list' have another not visible
character like as whitespace. Try exucuite puts "'#{real}'"; puts "'#
{list}'" . Result should be in apostrophies.
On 2 дек, 10:12, Prince3105 <[EMAIL PROTECTED]> wrote:
> Hi Experts,
>
> I am totally new to Ruby and Watir. Before i