[Wtr-general] clicking on a link problem
Bret Pettichord
bret at pettichord.com
Wed Feb 1 20:22:40 EST 2006
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, David.J.Solis at wellsfargo.com <David.J.Solis at wellsfargo.com>
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
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060201/5ad97e31/attachment.html
More information about the Wtr-general
mailing list