[Wtr-general] RPC Server unavailable

Danny R. Faught faught at tejasconsulting.com
Mon Jul 31 16:17:15 EDT 2006


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.



More information about the Wtr-general mailing list