In both cases, I would strongly suggest using an "or" construct rather
than just replacing the text. Then it will work with prior versions as
well as 7.
Lonny Eachus
==========
[sorry for the long delay, I cleverly sent the last email just before
going on vacation]
I am using dialog rather than winClicker, but it was fairly obvious from
your example what change I needed to make. line 32 of watir\dialog.rb
OLD
unless name_pattern =~ autoit.WinGetText("Microsoft Internet Explorer",
"")
NEW
unless name_pattern =~ autoit.WinGetText("Windows Internet Explorer",
"")
My code works now. I would assume that to be correctly updated for IE
7.0 all instances of "Microsoft Internet Explorer" in dialog.rb (there
are 4) should be updated to read "Windows Internet Explorer", but it
works if you only change the one I mention above.
Thanks,
-Dara
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Cain, Mark
Sent: Thursday, October 26, 2006 10:02 AM
To: [email protected]
Subject: Re: [Wtr-general] modal dialogs in IE 7.0
Dara, I had the same problem, when I started using IE7 a few months ago,
and I am pretty sure I know exactly what is wrong. MS changed the
popups title bar text in IE7 from 'Microsoft Internet Explorer' to
'Windows Internet Explorer'. So in watir\WinCLicker.rb you will need to
change lines 113 and 144:
OLD:
clickWindowsButton("Microsoft Internet Explorer" , button )
NEW:
clickWindowsButton("Windows Internet Explorer" , button )
Hope this helps,
--Mark
|
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general