On 7/2/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:

marekj wrote:
> a quick question about attaching to the session of IE.
> I am currently relying on attaching to one window on the desktop but I
> want to move towards running -b(ackground) option of Watir and running
> multiple IE windows. The best way I think I can do this is to maintain
> a handle to each IE instance. On my setup script that starts IE
> instance I can write out :hwnd and mainaint my test session based on
> that so each script talk to the correct window.


I don't understand why you don't just use the $ie value directly.
Bret

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.

I set my $ie in a generic way in setup script which is than later required
by each test.
like so...
$ie = Watir::IE.attach(:title, //)

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.
I am sure I am missing something... or making false assumptions about
execution.
gonna dig more...
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to