>I have no idea what is causing this.
 
Neither do we.   So far as we know, your code snippet might be preceded by
 
$ie = nil
 
What does the original page look like?  What does your original code look like (that is, at least a few lines before the call in question)? 
 
(General question, not specific to David:  When did the charter for this list begin to include "please, to the greatest extent possible, leave out HTML, Ruby code, or other clues that might help us to solve your problem?")
 
---Michael B., a little cranky this afternoon


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: February 1, 2006 4:22 PM
To: [email protected]
Subject: [Wtr-general] clicking on a link problem

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

Reply via email to