Try setting it directly:
$ie.text_field(:id, /grp_name_txtbox/i) = "12345"
This won't cause any events to be fired on the control which might in this
case be what's tripping up the test.
-Charley
On 3/23/07, jhun <[EMAIL PROTECTED]> wrote:
My application is written on ajax and im having an error when im setting a
value on textfield. here's the details:
my code:
def addGroup
$ie.link(:id,"button_addgroup").click
$ie.text_field(:id, /grp_name_txtbox/i).set("12345")
end
error:
1) Error:
test_addbuddy(TC_AddBuddy):
WIN32OLERuntimeError: fireEvent
OLE error code:80004005 in htmlfile
Unspecified error.
HRESULT error code:0x80020009
Exception occurred.
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3407:in `method_missing'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3407:in `fire_key_events'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3432:in `doKeyPress'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `each'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3427:in `doKeyPress'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3393:in `set'
C:/Program Files/Watir/examples/chikka/final/addbuddy.rb:25:in
`addGroup'
C:/Program Files/Watir/examples/chikka/final/addbuddy.rb:18:in
`test_addbudd
y'
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general