I have fix the  error message . Result was in Cap.

On Mar 6, 4:37 pm, maximore <[email protected]> wrote:
>  Error   Message :
>
> estCases_AgiileIteration1.rb:155: dynamic constant assignment
>     Result1=ie.test_field(name,"monthOfBirth").name.to_s
>             ^
> TestCases_AgiileIteration1.rb:156: dynamic constant assignment
>     Result2=ie.test_field(name,"dayOfBirth").name.to_s
>             ^
>
> On Mar 6, 11:23 am, "Mark Anderson" <[email protected]>
> wrote:
>
> > 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 Ofmaximore
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to