I believe the best solution is to use win32 api's GetWindow([hwnd of IE],
GW_ENABLED_POPUP), to get the hwnd of the popup.

http://msdn.microsoft.com/en-us/library/ms633515(VS.85).aspx

On Wed, Sep 15, 2010 at 19:23, Nathan Lane <[email protected]> wrote:

> I was just wondering because I was trying to come up with an elegant
> solution for WatiN. For some reason their version doesn't work on IE8, but I
> think I found a decent one.
>
> Thanks.
>
> Nathan
>
>
> On Wed, Sep 15, 2010 at 4:41 PM, Ethan <[email protected]> wrote:
>
>> js popups are the enabled popup of the IE window in all versions of IE I
>> have looked at.
>>
>>
>> On Wed, Sep 15, 2010 at 18:36, Bret Pettichord <[email protected]>wrote:
>>
>>> Dunno, but i run Watir scripts that access Javascript dialogs on IE8
>>> every day and they work.
>>>
>>> Is there a specific problem that you are seeing?
>>>
>>> Bret
>>>
>>> On Wed, Sep 15, 2010 at 4:48 PM, Nathan Lane <[email protected]>wrote:
>>>
>>>> It appears as though JavaScript pop-up dialogs in IE 8 are no longer
>>>> children of the IE 8 window. So how does Watir know to get those dialogs?
>>>>
>>>> --
>>>> Nathan Lane
>>>> Blog, http://blog.nathandelane.com
>>>>
>>>> _______________________________________________
>>>> Wtr-development mailing list
>>>> [email protected]
>>>> http://rubyforge.org/mailman/listinfo/wtr-development
>>>>
>>>
>>>
>>>
>>> --
>>> Bret Pettichord
>>> Lead Developer, Watir, www.watir.com
>>>
>>> Blog, www.io.com/~wazmo/blog <http://www.io.com/%7Ewazmo/blog>
>>> Twitter, www.twitter.com/bpettichord
>>>
>>>
>>> _______________________________________________
>>> Wtr-development mailing list
>>> [email protected]
>>> http://rubyforge.org/mailman/listinfo/wtr-development
>>>
>>
>>
>> _______________________________________________
>> Wtr-development mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
>
>
> --
> Nathan Lane
> Blog, http://blog.nathandelane.com
>
> _______________________________________________
> Wtr-development mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-development
>
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to