maximore,

Here is a simple example for "to_s" usage -

require 'watir/ie'
$ie = Watir::IE.new
$ie.goto("www.google.com")
example = $ie.link(:text, 'Preferences').text.to_s
puts example
sleep 2
$ie.close

You may want to change your statement to:
result=ie.test_field(name,"dayOfBirth").name.to_s

Change "value" to "name"

Regards,
Darryl(gem dandy)Brown



On Mar 5, 6:09 pm, maximore <[email protected]> wrote:
>  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
--~--~---------~--~----~------------~-------~--~----~
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