[Wtr-general] Attaching a Popup
Charley Baker
charley.baker at gmail.com
Thu Jul 20 14:17:37 EDT 2006
Ken,
You might want to follow the instructions for getting the latest
development gem installed:
http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem
And if you are working with an IE modal dialog, which you can verify from
the html source, it should have a function showModalDialog() for the popup.
Ugly stuff usually used only on internal apps, I've had to deal with a lot
of them. If it is an ie modal dialog then you can use this to get to it:
modal = ie.modal_dialog
There are some examples in modal_dialog_test.rb in the unittests directory.
The unittests really serve as great documentation for the project in
general.
cheers,
Charley
On 7/20/06, Ken Perez <kperez at cardinalsolutions.com> wrote:
>
> I copied all the files I needed from here, but when I run that command I
> get:
> undefined method `attach_modal' for #<Watir::IE:0x2c657a8>
> (NoMethodError).
>
> Ive checked the files multiple times, and Im sure I got what you said
> to. Is there something else I need to do for this to work?
>
> >What you are trying to do can't be done with the version of Watir.rb you
> >are using because the page you are trying to attach to is a Modal
> >window. Try this one at:
> >https://svn.openqa.org/svn/watir/branches/modal_dialog/watir/ (you will
> >also need the files from the Watir folder--the IEDialog and Win32ole
> >forders.)
> >
> >Copy the Watir.rb file (and the watir directory mentioned above) into
> >you ruby installation directory like:
> >C:\ruby\lib\ruby\site_ruby\1.8
> >
> >ie2 = $ie.attach_modal('Project - Administration')
> >
> >ie2.button(:value, "Cancel").click
> >
> >--Mark
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060720/cab098da/attachment.html
More information about the Wtr-general
mailing list