Bret,
This is the same problem that was occurring in wait(). The COM object
document method is called when the document method isn't available.
I've seen this if a page or frame immediately kicks off a new page load
before all the wait checks are complete or perhaps if the check is
called before the page/frame is completely ready.
Fix would similar to the one in wait where you make sure a document is
available:
(from IE#wait)
until suppress_ole_error [EMAIL PROTECTED] do
sleep 0.02; s.spin
end
David
Bret Pettichord wrote:
> This looks like a new problem, although related to problems we've seen
> before (and mostly fixed). I'm puzzled how it could happen -- but i'm
> not sure what information to ask for.
>
> Bret
>
> On 5/24/06, *Manish Sapariya* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Is this one known?
> I searched through the archive and could not find anything similar
> to this.
> I saw this only first time, and I am not sure whether I will see this
> again with the same script.
> Please let me know if HTML page or code will help isolate this
> problem.
>
> Thanks and Regards,
> Manish
>
>
> c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in
> `method_missing': document
> (WIN32OLERuntimeError)
> OLE error code:80070005 in <Unknown>
> Access is denied.
>
>
> HRESULT error code:0x80020009
> Exception occurred. from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:2447:in
> `document'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1059:in
> `check_for_http_error'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:205
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-
> 1.5.0.1005/./watir.rb:203:in `upto'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:203
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:201:in
> `call'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1558:in
> `run_error_checks'
> from c:/program
> files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:1557:in
> `each'
> ... 6 levels...
> from riGuardSelfTest_2_2_1.rb:374:in `CreateAndScheduleFTPSearch'
> from riGuardSelfTest_2_2_1.rb:371:in `each'
> from riGuardSelfTest_2_2_1.rb:371:in `CreateAndScheduleFTPSearch'
> from riGuardSelfTest_2_2_1.rb:759
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general