From: Eric Hodel Date: 2003-03-12T02:42:52+09:00 Subject: Re: Killing an WIN32OLE IE Object --1MCZUn4MZNv/LeVo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Chris Morris (chrismo@clabs.org) wrote: > I don't know if this is what you're looking for, in my ClIEController[1] > lib, to wait until it's *really* done loading the current page, you must I've looked at it, but found it too big for the simple stuff I'm doing > (1) wait for the busy property to be false > (2) wait for the ReadyState property to equal READYSTATE_COMPLETE or (3) use WIN32OLE_EVENT and wait for the correct Event to be fired (I waited until the status text changed to "Intranet Zone"), but this creates other problems, because IE blocks when you use WIN32OLE_EVENT and sleep in ruby, it seems that even running the event handler's loop in another thread causes IE to block... > As far as the caching issues you talked about -- the best I've done so far > with my acceptance testing is to manually set the browser options to load > the page fresh each time *and* delete everything in the Temporary Internet > Files during tear down. Yep, do both of those. Looks like I'll have to busy-wait on #Busy or #ReadyState --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --1MCZUn4MZNv/LeVo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+biAXMypVHHlsnwQRAiahAJ4rb6xbDrpz6DfonI6G7CRvxDsYWwCfWSdi +ThkiA2tJq9ti0OpTvbHVkE= =5SAN -----END PGP SIGNATURE----- --1MCZUn4MZNv/LeVo--