$ie.text_field(:name,"NAME").set('60000') also gives alert window but does not throw any exception.On clicking 'Ok' on alert window, 6(first digit) will be entered onto the text box followed by an alert window again for the next digit.
This continues for all the digits of the number given as a string.

Zeljko Filipin <[EMAIL PROTECTED]> wrote:
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
How! ever 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 : Find your partner now.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


Yahoo! India Matrimony: Find your partner now.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to