I get it now, thanks for correcting me.

I think I'm getting closer to success, the code you provded below now clicks
on the link that triggers the popup but instead of clearing it, I get a
different error...

        ie2.remote_eval "frame(:name, 'Controls').link(:index, 2).click()"
        dialog.button('OK').click

gives

Watir::Exception::UnknownObjectException: 
    c:/ruby/lib/ruby/site_ruby/1.8/Watir/Dialog.rb:33:in `click'
    LMDC_Invites.rb:293:in `test_LMDC_submit'
    LMDC_Invites.rb:136:in `each'
    LMDC_Invites.rb:136:in `test_LMDC_submit'

 

-----Original Message-----
From: Bret Pettichord [mailto:[EMAIL PROTECTED] 
To: [email protected]
Subject: RE: [Wtr-general] New, improved support for popup dialogs

Any object is supported, buttons, links, whatever.

At 05:21 PM 8/9/2005, Iain wrote:
>         controls = ie2.frame(:name, "Controls")
>         controls.remote_eval "link(:index, 2).click()"
>         dialog.button('OK').click

Instead try this:

         ie2.remote_eval "frame(:name, 'controls').link(:index, 2).click()"
         dialog.button('OK').click

The key point is that remote_eval is a method of IE, and not of any other 
class.


_____________________
  Bret Pettichord
  www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to