The button "B1" does not open a modal dialog. That is a _javascript_ alert box. For those, you need WinClicker.

Lonny Eachus
==========


Subject:
Re: [Wtr-general] watir-1.5.1.1081.gem and popups
From:
[EMAIL PROTECTED]
Date:
Fri, 15 Sep 2006 21:06:41 -0700 (PDT)

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/_javascript_4.htm")
ie.button(:name, "B1").click_no_wait

modal = ie.modal_dialog

What am I doing wrong?

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

Reply via email to