Bolton is right. We need more to go on.

But i can actually answer your actual question ("what is causing this") if not your implied question ("how can i get my code to work").

This is happening because the IE window that "$ie" was bound to was closed. That is what "The object invoked has disconnected from its clients" means. The object, in this case is the browser and the client is our COM binding to it. This message means that there used to be something at the other end of the $ie, but now it is gone.

Bret

On 2/1/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
I encountered an error that I cannot figure out. In my code, I'm linking to a new page using
 
$ie.link(:text, "Administration").click
 
But instead, I get this error:
 
WIN32OLERuntimeError: Unknown property or method `document'
    HRESULT error code:0x80010108
      The object invoked has disconnected from its clients.
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1347:in `method_missing'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1347:in `document'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:899:in `getLink'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2841:in `initialize'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:570:in `new'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:570:in `link'
 
 
I have no idea what is causing this.

_______________________________________________
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

Reply via email to