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.
>
> Before I jump into doing this I want to find out if it's possible to 
> do in with -b option and if I am on the right track.
>
> so for example
> I will do this in my startup
> $ie = Watir.start()
> $ie_hwnd = $ie.hwnd()
>
> then in my test cases I attach to the instance
> $ie = Watir::IE.attach(:hwnd, $ie_hwnd)
>
> Then I can run another script file containing testCases with the same 
> code.
>
> So this will create another thread of execution and each thread will 
> have $ie attached to different instance of IE in memory.
> Am I on the right track?
> Your ideas are much appreciated.
> Thanks
> marekj
I don't understand why you don't just use the $ie value directly.

Bret
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to