On 7/2/07, <b class="gmail_sendername">Bret Pettichord</b> &lt;<a href="mailto:bret@pettichord.com">bret@pettichord.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
marekj wrote:<br>&gt; a quick question about attaching to the session of IE.<br>&gt; I am currently relying on attaching to one window on the desktop but I<br>&gt; want to move towards running -b(ackground) option of Watir and running
<br>&gt; multiple IE windows. The best way I think I can do this is to maintain<br>&gt; a handle to each IE instance. On my setup script that starts IE<br>&gt; instance I can write out :hwnd and mainaint my test session based on
<br>&gt; that so each script talk to the correct window.</blockquote><div><br>&gt;I don&#39;t understand why you don&#39;t just use the $ie value directly.<br>
&gt;Bret<br><br>hmmm... I was thinking that if I have 3 scripts running at the same time with -b switch they would get confused at which window to talk to.<br><br>I set my $ie in a generic way in setup script which is than later required by each test.
<br>like so...<br>$ie = Watir::IE.attach(:title, //)<br><br>so it attaches to IE that I am working with (and there is always one) .... but now I want to run more instances of IE at once (I hope that&#39;s possible) I thought I need to clearly specify, perhaps by unique handle which one to attach to.
<br>I am sure I am missing something... or making false assumptions about execution.<br>gonna dig more...<br><br></div></div><br>