Has anyone else run into this error? ( whats worse is it's intermittent
). 

I've tried uninstall/reinstall of ruby and watir. 

>From within my test script I start an ie browser window as per normal

     @ie = IE.new
     @ie.bring_to_front()

A new browser window is popped up. And that's as far as it gets.

And the error is

  1) Error:
test001(TC_test001):
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:1237:in `method_missing'
    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1237:in `title'
    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1302:in `bring_to_front'


# Make the window come to the front
        def bring_to_front
                autoit = WIN32OLE.new('AutoItX3.Control')
                autoit.WinActivate title, ''            
        end

# Return the title of the window
        def title
            @ie.document.title
        end


=======================================================
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307 082

*******************************************************************
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
*******************************************************************


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to