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: [email protected]
[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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to