[Wtr-general] Error clicking a button...
Bret Pettichord
bret at pettichord.com
Tue Sep 5 15:30:03 EDT 2006
You are getting an error in fireEvent because this method is being
called from the set method that you are calling. The call stack shows us
this. (Actually it shows that set calls doKeyPress, which calls fireEvent.)
I still think it is a synchronization problem. You can verify this by
putting really long hard-coded sleeps before any lines in your script
that are giving you errors. If this fixes the problem (even if only
intermittently) then it is definitely a synchronization problem.
You said that ie.wait wasn't working for you. Were you getting errors?
Was it simply not waiting long enough?
Bret
Cain, Mark wrote:
> This was code I wrote awhile ago (when $ie.wait didn't work right) and
> was getting back to update.
>
> The call to $ie.wait? didn't work but $ie.wait did (seems to be a bit
> faster then before).
>
> I still get the same error message I originally posted until I put call
> that reloads the page in, and sometimes I get this error too:
>
> 1) Error:
> test5_ca(TC_PERwResolution):
> WIN32OLERuntimeError: Unknown property or method `fireEvent'
> HRESULT error code:0x80070005
> Access is denied.
> C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3941:in `method_missing'
> C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3941:in `doKeyPress'
> C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3935:in `doKeyPress'
> C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3907:in `set'
> C:/watir_bonus/working/PER/tc_PERwResloution_test.rb:277:in
> `test5_ca'
>
> This is odd since I am not using the 'fireEvent' method in my script nor
> do I know what the 'Access is denied' message is all about.
>
> --Mark
>
>
> -----Original Message-----
> From: wtr-general-bounces at rubyforge.org
> [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret Pettichord
> Sent: Tuesday, September 05, 2006 9:32 AM
> To: wtr-general at rubyforge.org
> Subject: Re: [Wtr-general] Error clicking a button...
>
> Mark,
>
> I see that you have some hard-coded sleep statements. This a bad sign.
> Can you replace these with calls to $ie.wait? This will probably fix the
>
> problem you reported as well.
>
> Bret
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
More information about the Wtr-general
mailing list