[Wtr-general] New, improved support for popup dialogs
Bret Pettichord
bret at pettichord.com
Wed Aug 10 02:38:07 EDT 2005
You are talking about Modal Web Dialogs. These include HTML.
The only way i know of for handling them is to, first, use ie.remote_eval
to click the link or button that posts the modal (so it doesn't hang your
script), and then use ie.send_keys to send key events to the window to make
it go away. I don't know of any way to access the data on these kinds of
dialogs.
The only idea i have for a really good solution would be to make sense of
this code:
http://support.microsoft.com/kb/q249232/
But i fear that this can't be converted to Ruby directly and therefore
would require a C library for Watir -- and i'm too dumb for that. Volunteers?
Bret
At 01:16 AM 8/10/2005, Tim Feltham wrote:
>Are you planning on putting this in at some stage?
>
>________________________________
>
>From: wtr-general-bounces at rubyforge.org on behalf of Bret Pettichord
>Sent: Wed 10/08/2005 6:00 p.m.
>To: wtr-general at rubyforge.org
>Subject: RE: RE: [Wtr-general] New, improved support for popup dialogs
>
>
>
>At 12:51 AM 8/10/2005, Tim Feltham wrote:
> >I haven't had a chance to use this new code yet...can I do a
> >show_all_objects on the popup?
> >Can it select items in drop down lists yet?
>
>No. No.
>
>
>_____________________
> Bret Pettichord
> www.pettichord.com
>
>_______________________________________________
>Wtr-general mailing list
>Wtr-general at rubyforge.org
>http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
>_______________________________________________
>Wtr-general mailing list
>Wtr-general at rubyforge.org
>http://rubyforge.org/mailman/listinfo/wtr-general
_____________________
Bret Pettichord
www.pettichord.com
More information about the Wtr-general
mailing list