It looks like the following IE9 specific code in element.rb:341 is causing 
the problem. Does anyone know about this code?
I commented out the IE9 section, and just used object.fireEvent(event) and 
it worked fine. What's the reason for this code?
 
    def dispatch_event(event)
      if IE.version_parts.first.to_i >= 9
        begin
          # we're in IE9 document standards mode
          ole_object.dispatchEvent(create_event(event))
        rescue WIN32OLERuntimeError
          ole_object.fireEvent(event)
        end
      else
        ole_object.fireEvent(event)
      end
    end


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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to