For IE Controller:

http://rubyforge.org/frs/shownotes.php?release_id=241

* Added fix for the RPC intermittent bug that would occur of an instance
  of ie/iec was created too soon after a previous one was killed.

Code change to def initialize():

        # creating a new IE instance immediately after quiting a previous one
        # causes intermittent RPC unavailable errors and other weirdness.
        # Make sure to wait 1 second after eating before swimming...
        until (Time.now - @@closed_last) > 1; sleep 0.1; end if @@closed_last

immediate preceeds:

        @ie = WIN32OLE.new('InternetExplorer.Application')

Any reason we shouldn't add this code to Watir?

-----

I remember complaining about this problem to Chris Morris when i was just a user of his IE Controller. I think he fixed it. Someone want to check the history of that project. Chris?

Maybe the answer is to avoid shutting down the COM server until you are done running tests.

One way would be to reuse the same client with your tests. That is what we do with the Watir unit tests. Another would be create an invisible ie at the beginning and not shut it down in the end. If we have one client reference, closing other ie instances won't also shutdown the server.

Bret



_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to