On 7/2/07, <b class="gmail_sendername">Bret Pettichord</b> <<a href="mailto:bret@pettichord.com">bret@pettichord.com</a>> 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>> a quick question about attaching to the session of IE.<br>> I am currently relying on attaching to one window on the desktop but I<br>> want to move towards running -b(ackground) option of Watir and running
<br>> multiple IE windows. The best way I think I can do this is to maintain<br>> a handle to each IE instance. On my setup script that starts IE<br>> instance I can write out :hwnd and mainaint my test session based on
<br>> that so each script talk to the correct window.</blockquote><div><br>>I don't understand why you don't just use the $ie value directly.<br>
>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'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>