Sorry, been meaning to reply on this, I don't think this method exists in my version of watir (1.5.1.1017)
attempting to call the method results in "undefined method `persist_ole_connection' for #<Watir::IE:0x2a9a520> (NoMethodError)"
A search on the contents of all files in my "c:\ruby" directory returned no instances of "persist_ole_connection"
I solved my problem by adding "sleep 2" before calling IE.new. I don't open new IE windows so frequently during testing that this is a performance problem for me.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Thursday, June 01, 2006 12:10 PM
"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.
Good question.
Option 3 was causing problems when it was enabled by default, so i turned it off. You can turn it back on with
Watir::IE.persist_ole_connection = true
This is an as yet undocumented feature.
Please let us know whether this helps. Or whether it creates other problems. I wish i remember the exact problems that lead me to turn it off.
Bret
CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
