Hello,

I'm testing on Win7 (IE8), Ruby 1.8.6 (also tested under 1.8.7) and
Watir 1.7.1
Below irb session works fine under all the same environment except
Watir 1.6.2

I have a page that pops up a new window. I can attach to it without an
error but it just isn't right.

irb(main):001:0> require 'watir'
=> true
irb(main):002:0> ie2 = Watir::IE.find(:title, /Agreement/)
=> #<Watir::IE:0x49de500 url="https://mydomain.com/Registration.asp";
title="Agreement">
irb(main):003:0> ie2.status
=> "Waiting for about:blank..."

When I do a...

irb(main):003:0> ie2.close
WIN32OLERuntimeError: unknown property or method `hwnd'
    HRESULT error code:0x80010108
      The object invoked has disconnected from its clients.
        from C:/Programs/Ruby186Watir17/lib/ruby/gems/1.8/gems/
watir-1.7.1/lib/watir/ie-class.rb:403:in `method_missing'
        from C:/Programs/Ruby186Watir17/lib/ruby/gems/1.8/gems/
watir-1.7.1/lib/watir/ie-class.rb:403:in `close'
        from (irb):3

it hangs up. If I manualy close the window I get the above error
message.

Any help would be appreciated.

Thanks

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to