I've been using ruby 1.86 and Watir for years.  I've been trying to
upgrade to ruby 1.92 so that we don't have to maintain 2 versions of
ruby.

Using the latest version of Watir (1.9.2), one of the only issues I'm
noticing is that any time I call ie.close  win32ole in ruby 1.92
raises a NoMethodError instead of WIN32OLERuntimeError.

I've been able to patch this manually, but it's a pain to always re-
patch on on all our workstations every time a new release of watir
comes out.
It would be nice if someone could make the simple change below to fix
the issue in the next release of watir.

STEPS TO REPRODUCE ISSUE:
(when running ruby 1.92 & Watir 1.9.2)
ie = Watir::IE.start('google.com')
ie.close

NoMethodError: unknown property or method: `name'
    HRESULT error code:0x800706ba
      The RPC server is unavailable.
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/
ie-class.rb:333:in `method_missing'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/
ie-class.rb:333:in `exists?'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/
ie-class.rb:420:in `close'
        from (irb):4
        from C:/Ruby192/bin/irb:12:in `<main>'




TO FIX THE ISSUE:
change ie-class.rb:333:in `exists?'
FROM:  rescue WIN32OLERuntimeError
TO:       rescue WIN32OLERuntimeError, NoMethodError


If someone on the DEV team could make this simple change I'd
appreciate it :)
Thanks!
-David Brown




-- 
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