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

It looks like my freshly installed IE9 browser uses "IE8 Document standards"
which causes a problem in Watir.
I wonder why Oscar's doesn't fail. Maybe it uses IE9 Document standards




Alister Scott
Brisbane, Australia
Watir Web Master: http://watir.com
Blog: http://watirmelon.com
LinkedIn: http://www.linkedin.com/in/alisterscott

"There are two ways to get enough: One is to continue to accumulate more and
more. The other is to desire less." *~ G. K. Chesterton*


On Thu, Aug 25, 2011 at 11:00 AM, Alister Scott <[email protected]>wrote:

> It looks like my freshly installed IE9 browser uses "IE8 Document
> standards" which causes a problem in Watir.
> I wonder why Oscar's doesn't fail. Maybe it uses IE9 Document standards
>
>  --
> 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]
>
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to