Thanks Baker,
What I am doing is putting .to_s while using the variable.
I have done what you said and it works for me.
Jaggi
On Dec 2, 9:18 pm, Charley Baker [EMAIL PROTECTED] wrote:
This was just answered in another thread, puts implicitly calls to_s on the
table cell that's returned. So to set the variable to the text in the cell
you'll have to explicitly call it:
tempValue = ie.frame(rightFrame).table(:id,TableView)[1][2].to_s
Charley Baker
blog:http://charleybakersblog.blogspot.com/
Project Manager, Watir,http://wtr.rubyforge.org
QA Architect, Gap Inc Direct
On Tue, Dec 2, 2008 at 7:46 AM, Darin Duphorn
[EMAIL PROTECTED]wrote:
Will this work?
ie.text_field(:name, autoGenId) = tempValue
Is the code within the same .rb file? Are you passing tempValue
correctly?
-Original Message-
From: watir-general@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jaggi
Sent: Tuesday, December 02, 2008 8:05 AM
To: Watir General
Subject: [wtr-general] Not able to use text from the web pages
Hi,
I am having problem while using the values from one page to next page
Here are the commands I am using to get the values from the table and
putting it to a variable
puts ie.frame(rightFrame).table(:id,TableView)[1][2]
tempValue = ie.frame(rightFrame).table(:id,TableView)[1][2]
puts tempValue
here I am able to see the values with the help of puts...
50001
50001
After this I am navigating the next page where I have to fill the
value from tempValue but when I am trying to use the tempValues on the
next page then Watir is not able to recognize the variable...
The way I am trying to use the values shown below-
ie.text_field(:name, autoGenId).value = tempValue # autoGenId is
the auto generated id for the user
And below I got to know from the earlier threads...
ie.text_field(:name, autoGenId).set(*tempValue .to_s*) #
tempValue is the auto generated id for the user
Both are not working for me. :-(
Please help here.
Thanks,
Jaggi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---