I'm usually not using close_modal directly.  It's being called when 
IE.close_all is called.

Thanks for the great info
-Alan

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Jari Bakken
Sent: Thursday, December 03, 2009 5:27 PM
To: Watir development
Subject: Re: [Wtr-development] Problems with using IE.close_modal under Ruby 
1.9.1p243

On Fri, Dec 4, 2009 at 2:03 AM, Alan Ark <[email protected]> wrote:
> I'm guessing that a new version of win32ole.so might help the issue?

That won't solve the problem, which is that the DL API (part of ruby's
stdlib) is not compatible from 1.8 to 1.9. Recompilation might be
needed for 1.9 as well. My quick fix was to just raise that error - I
wasn't sure if it was being used since there are no unit tests for it.
If you want to fix it, you'd need to:

1. Figure out how DL works in 1.9, or rewrite the Watir::Win32 module
to use the FFI gem.
2. Possibly recompile the .so for 1.9.

The FFI gem gives a much nicer API for interacting with C libraries,
but it is of course yet another dependency..
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to