Probably a little hacky but I cant test it as I'm still on XP and watir 1.4
(Lazy I know)
try this
ie = IE.new.goto(' http://foo' <http://foo'> )
Might fool it into keeping the same window
Malcolm________________________________ From: [EMAIL PROTECTED] on behalf of Chris McMahon Sent: Tue 12/19/2006 1:40 AM To: [email protected] Subject: [Wtr-general] ie.new vs. ie.goto() Re: goto in IE7 on Vista Attaching to the new browser allows our scripts to work but I would prefer to avoid this exercise. Code: Ie = IE.new Ie.goto(url) We just did an experiment: ie = IE.new ie.goto(' http://foo' <http://foo'/> ) For IE6, this is one window. For IE7, this is 2 windows. Some bit of magic that keeps goto() in the right window has gone haywire for IE7. _____________________________________________________________________ This e-mail has been scanned for viruses by MessageLabs. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error, please notify Conchango plc as soon as possible. The unauthorised use, disclosure, copying or alteration of this message is prohibited and may be unlawful. The internet cannot guarantee the integrity of this message and therefore Conchango plc will not be liable for the message if modified. Reg. Heritage House, Church Road, Egham, Surrey, TW20 9QD T 44 (0) 1784 222 222 F 44 (0) 1784 222 200 E [EMAIL PROTECTED] No. 2598884
<<winmail.dat>>
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
