When I try my code out in irb I have no issues with the method calls
in the following code

while @ie.modal_dialog.exists? == false
    sleep 1
 end
@ie.modal_dialog.button(:value,'Yes').click_no_wait

but when I run this code in my application I get these errors

IE#modal_dialog not supported with the current version of Ruby
(1.8.6).
See http://jira.openqa.org/browse/WTR-2 for details.
undefined method `connect_unknown' for WIN32OLE:Class

David

On Oct 30, 8:50 am, Bret Pettichord <[email protected]> wrote:
> Could you try
>
> @ie.modal_dialog(:title, 'Batch Update')
>
>
>
> david wrote:
> > Have a section of code that is waiting for a modal dialog to appear
> > which is visible with the title ‘'Batch Update -- Web Page Dialog’
>
> > modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
> > modal.wait
> > modal.button(:value,'Yes').click_no_wait
>
> > However the dialog is not being found by title.
>
> > Is there a problem with findingmodal_dialogby title? Is there
> > another way to do this? I am using Ruby 1.8.6
>
> > I tried just modal = @ie.modal_dialog
> > which should work according to the API documentation but I see there
> > is a problem with this approach, even though there can be only one
> > modal dialog at a time on screen and this seems like an ideal way to
> > attach to a modal dialog. I get the following error:
>
> > IE#modal_dialognot supported with the current version of Ruby
> > (1.8.6).
> > Seehttp://jira.openqa.org/browse/WTR-2for details.
> > undefined method `connect_unknown' for WIN32OLE:Class
>
> > David
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to