Either use

require 'watir/contrib/enabled_popup'
and
hwnd1 = browser.enabled_popup(5)

Or use AutoITand WinGetHandle method


On Tue, Aug 4, 2009 at 7:55 PM, Vale <vsant...@gmail.com> wrote:

>
> Hello everyone Im new at ruby/watir and im trying to do a performance
> test.
> To do this I have to run a lot of script concurrently.
> My problem is:
> when I do
> ie.link(:url,"the url").click
> this opens a pop up, but how do I now which pop up has open this
> instance?
>
> if I do
>
> iePopUp = Watir::IE.attach(:title,"titulo de la pagina")
>
> then iePopUp is attached to any of the pages opened concurrently and
> sometimes two or more attach to the same!!
>
> I've seen that I can use attach with hwnd, but how can  I know the
> hwnd of the
> ie.link(:url,"the url").click ?
>
> thanks a lot in advice!
> valeria santini
> Uruguay
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to