[wtr-general] Re: ie.test_field(name,man).value.to_s / Passing result to a parameter

2009-03-06 Thread Mark Anderson
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: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On

[wtr-general] Re: ie.test_field(name,man).value.to_s / Passing result to a parameter

2009-03-06 Thread maximore
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,

[wtr-general] Re: ie.test_field(name,man).value.to_s / Passing result to a parameter

2009-03-06 Thread maximore
I have fix the error message . Result was in Cap. On Mar 6, 4:37 pm, maximore hri...@gmail.com wrote:  Error   Message : estCases_AgiileIteration1.rb:155: dynamic constant assignment     Result1=ie.test_field(name,monthOfBirth).name.to_s             ^ TestCases_AgiileIteration1.rb:156:

[wtr-general] Re: ie.test_field(name,man).value.to_s / Passing result to a parameter

2009-03-05 Thread Darryl (gem dandy) Brown
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