Hi
I still can't get this to work.
If I run the following code, Ruby returns the error message 'Unable to
attach to Modal Window nil after 10.5 seconds'
Watir::IE::attach_timeout = 10
ie = Watir::IE::new
ie.goto("http://www.echoecho.com/javascript4.htm")
ie.button(:name, "B1").click_no_wait
modal = ie.modal_dialog
What am I doing wrong?
Thanks
-----Original Message-----
From: "David Schmidt" <[EMAIL PROTECTED]>
Sent: Fri, September 15, 2006 15:35
To: [email protected]
Subject: Re: [Wtr-general] watir-1.5.1.1081.gem and popups
It's been a while, but I think I found the code in WET or perhaps in
someone's blog, but in any case my statement here was to acknowledge
that I didn't write that code, and to give credit to the author.
David
Bret Pettichord wrote:
> David Schmidt wrote:
>
>> but I found some special code written by Yaxin Wang which
>> does some fancy C++ casting to give us the same type of handle.
>>
>>
> David,
>
> It seems funny to hear that you found it. This was the code that Yaxin
> wrote at my request and to my specifications and contributed to Watir
> for this purpose. We were both with ThoughtWorks at the time. Using
> Yaxin's code, I wrote the original modal_dialog method that allowed us
> to access this dialog via Title, and then you enhanced this so that an
> argument was unnecessary.
>
> Bret
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general