[Wtr-general] ie.new vs. ie.goto() Re: goto in IE7 on Vista
Beaton, Malcolm
Malcolm.Beaton at conchango.com
Tue Dec 19 08:43:38 EST 2006
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: wtr-general-bounces at rubyforge.org on behalf of Chris McMahon
Sent: Tue 12/19/2006 1:40 AM
To: wtr-general at rubyforge.org
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 talktous at conchango.com No. 2598884
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4669 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wtr-general/attachments/20061219/581d0cd7/attachment-0001.bin
More information about the Wtr-general
mailing list