Do you mean: result = ie.text_field(:name, "dayOfBirth").value.to_s
a) you shouldn't need to use .to_s, value returns a string b) could you email the actual error message to the list? > -----Original Message----- > From: [email protected] [mailto:watir- > [email protected]] On Behalf Of maximore > Sent: Thursday, March 05, 2009 5:09 PM > To: Watir General > Subject: [wtr-general] ie.test_field(name,"man").value.to_s / Passing > result to a parameter > > > Hi > > Assume we have result define ; > > is it possible to pass a value from ie.test_field > (name,"man").value.to_s to a variable ? let say i have this > expression. > > result=ie.test_field(name,"dayOfBirth").value.to_s > I get dynamic error message ............. any idea how to go about > passing? > Thanks I take my ans off the board > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 3911 (20090305) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 3913 (20090306) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > __________ Information from ESET NOD32 Antivirus, version of virus signature database 3913 (20090306) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
