Try $ie.text_field(:name,"NAME").set('60000')
Zeljko
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Amitha Shetty
Sent: Tuesday, October 25, 2005 11:55 AM
To: [email protected]
Subject: [Wtr-general] Text box gives an Alert Window when input is
giventhrough Watir
Hi,
There is a textbox in the application that accepts only numeric data.
When I try to input data through Watir into this text box, an alert window
popsup saying ' Value should be numeric' though data given is numeric and
throws an exception saying:
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `doKeyPress': undefined
method `length' for 60000:Fixnum (NoMethodError)
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3393:in `set'
from 1000MailTest.rb:103
However when I manually input numeric data into that textbox, it accepts
without any alert window.
I used the following code in my script:
$ie.text_field(:name,"NAME").set(60000)
How do I handle this?
Thanks,
Amitha
________________________________
Yahoo! India Matrimony <http://yahoo.shaadi.com> : Find your partner now.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general