<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2>Found the cause of my problem..</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2>added some extra puts lines to watir.rb _find 
function</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2>def self._find(how, what)&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shell = 
WIN32OLE.new("Shell.Application")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ieTemp = 
nil<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shell.Windows.each do 
|window|<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; puts 
window.locationname<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; puts "location 
url"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; puts 
window.locationURL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; puts "window 
path"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; puts 
window.path<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #next unless (window.path =~ 
/Internet Explorer/ rescue false)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next unless 
(window.path =~ /WINDOWS/ rescue false) # this works</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2>window.path on my machine is putting out C:\WINDOWS\ 
and&nbsp;not matching on /Internet Explorer/</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2>Now over to smarter minds than mine to explain where and 
how the value of&nbsp;window.path is sourced from ..</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006>&nbsp;</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=935181501-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><FONT face=Arial color=#0000ff 
size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> wtr-general-bounces@rubyforge.org 
[mailto:wtr-general-bounces@rubyforge.org] <B>On Behalf Of </B>Neri, 
Marco<BR><B>Sent:</B> Wednesday, 2 August 2006 10:29<BR><B>To:</B> 
wtr-general@rubyforge.org<BR><B>Subject:</B> Re: [Wtr-general] Attaching to 
windows problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>I'm having&nbsp;similar issues.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>running </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>watir 1.5.1.1065 </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>ruby 1.8.2</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>win xp sp2</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>error trace</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=529421900-02082006><FONT face=Arial 
color=#0000ff size=2>&nbsp; 1) 
Error:<BR>testLoadAuditHome(TC_testLoadAuditHome):<BR>Watir::Exception::NoMatchingWindowFoundException: 
Unable to locate a window with<BR>&nbsp;title of 
(?-mix:Audit)<BR>&nbsp;&nbsp;&nbsp; 
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:1439:in 
`attach_b<BR>rowser_window'<BR>&nbsp;&nbsp;&nbsp; 
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:1314:in 
`attach_i<BR>nit'<BR>&nbsp;&nbsp;&nbsp; 
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:1307:in 
`attach'<BR>&nbsp;&nbsp;&nbsp; ./Modules\ModuleBrowser.rb:8:in 
`startBrowser'<BR></FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> wtr-general-bounces@rubyforge.org 
[mailto:wtr-general-bounces@rubyforge.org] <B>On Behalf Of </B>Attebery, 
Bill<BR><B>Sent:</B> Friday, 23 June 2006 03:33<BR><B>To:</B> 
wtr-general@rubyforge.org<BR><B>Subject:</B> Re: [Wtr-general] Attaching to 
windows problem<BR></FONT><BR></DIV>
<DIV></DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial 
color=#0000ff size=2></FONT>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff size=2>I'm 
using Windows XP&nbsp;- SP2&nbsp;&nbsp; -- </FONT></SPAN><SPAN 
class=157231917-22062006><FONT face=Arial color=#0000ff size=2>more precisely 
from About Windows&nbsp;Version 5.1 (Build 2600.xpsp_sp2_gdr.050301-1519 : 
Service Pack 2)</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2>and</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff size=2>Ruby 
version: 1.8.2 (I was once under the impression that this was required for watir 
and haven't had the need to upgrade)</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2>Note:</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff size=2>I had 
not installed Watir from a gem,&nbsp;obviously when I did&nbsp;it put it&nbsp;in 
the gems directories.</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff size=2>I had 
watir files in the C:\ruby\lib\ruby\site_ruby\1.8&nbsp;directory so I moved the 
watir.rb and watir folder from here to another location out of my path to make 
sure it called the right watir files -- did I miss anything here by 
chance?</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff size=2>The 
error messages refer to watir 1.5 so it seems it's using the correct 
version.</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff size=2>Just 
wondering, as I said I haven't done this before.</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2>------------------------------&nbsp;</FONT></SPAN><BR><BR>There have been 
a lot of changes in this code in 1.5 and this code is very sensitive to 
environment.<BR><BR>What version of Windows and Ruby are you using?<SPAN 
class=157231917-22062006><FONT face=Arial color=#0000ff 
size=2>&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=157231917-22062006></SPAN>&nbsp;</DIV>
<DIV>Bret<BR><BR></DIV>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff><FONT color=#000000>The content contained in this 
      electronic message is not intended to<BR>constitute formation of a 
      contract binding TWTC. TWTC will be<BR>contractually bound only upon 
      execution, by an authorized officer, of<BR>a contract including agreed 
      terms and conditions or by express<BR>application of its 
      tariffs.<BR><BR>This message is intended only for the use of the 
      individual or entity<BR>to which it is addressed. If the reader of this 
      message is not the<BR>intended recipient, or the employee or agent 
      responsible for<BR>delivering the message to the intended recipient, you 
      are hereby<BR>notified that any dissemination, distribution or copying of 
      this<BR>message is strictly prohibited. If you have received 
      this<BR>communication in error, please notify us immediately by replying 
      to<BR>the sender of this E-Mail or by 
telephone.<BR></FONT></TD></TR></TBODY></TABLE>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN>&nbsp;</P>
<P><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">=======================================================</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">The information contained 
in this email and any files attached may</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">be confidential 
information to the intended recipient and may be</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">the subject of legal 
professional privilege or public interest immunity.</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN>&nbsp;</P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">If you are not the 
intended recipient, any use, disclosure or copying is</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">unauthorised.</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN>&nbsp;</P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">If you have received this 
document in error please telephone 1300 307 082</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN>&nbsp;</P>
<P><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">*******************************************************************</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">This footnote also 
confirms that this email message has been swept</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">for the presence of 
computer viruses.</SPAN></P>
<P><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">*******************************************************************</SPAN></P>
<P><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN>&nbsp;</P>
<p><span style="font-family:'Arial';font-size:8pt;">&nbsp;</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">=======================================================</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">The information contained in this email and any files attached may</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">be confidential information to the intended recipient and may be</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">the subject of legal professional privilege or public interest immunity.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;"></span></p>
<p><span style="font-family:'Arial';font-size:8pt;">&nbsp;</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">If you are not the intended recipient, any use, disclosure or copying is</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">unauthorised.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;"></span></p>
<p><span style="font-family:'Arial';font-size:8pt;">&nbsp;</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">If you have received this document in error please telephone 1300 307 082</span></p>
<p><span style="font-family:'Arial';font-size:8pt;"></span></p>
<p><span style="font-family:'Arial';font-size:8pt;">&nbsp;</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">*******************************************************************</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">This footnote also confirms that this email message has been swept</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">for the presence of computer viruses.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">*******************************************************************</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">&nbsp;</span></p></BODY></HTML>