If we're not dealing with a modal dialog, but an actual new window, often Watir
doesn't wait correctly since it's only worrying about whether the current
window is done loading, not what the pop-up is doing. Here's my fix:
def get_popup(how, what)
tries = 100
popup = nil
until
if i'm reading this right, you click $ie.button(:value, Log on).click and
it makes a pop up window?
$ie.button(:value, Log on).click_no_wait
$ie.modal_dialog.button(:value, close).click
that might do it. If you have an old version of watir this might not work.
On 2/28/07, Simba [EMAIL PROTECTED] wrote:
$ie1=$ie.attach( :title, /Log On error /i )
Try replacing this with
IE.attach( :title, /Log On error /i )
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org