A collegue reports that he directly kills the iexplore process as a way of closing IE, and avoiding the RPC error.

On 7/31/06, Danny R. Faught < [EMAIL PROTECTED]> wrote:
w> 1. Add time delays between the ie.close and ie.new or ie.start. This
will give a chance for the ie.close to really close.
> 2. Don't close IE -- just reuse the existing client between tests.
> 3. Create an additional IE. As long as this lives, the IE server will continue to live and you can close and create IE windows without worry.

I started getting the RPC server error in my script, when I changed it to
close IE, clear the cache, and restart IE between iterations. The
solution I'm trying, not quite on the list above, is this -

# Close IE and make darn sure it's closed
def closeIE(ie)
        while 1
                begin
                        ie.close
                rescue
                        break
                end
                sleep 0.1
        end
end

Seems to avoid the RPC error. I just bounce on ie.close until it throws
an exception, before I try to open another IE window.
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to