I need to test that direct visits to a URL do not allow a download to happen, 
but because there's no link on a page for me to test, I can't use the 
click_no_wait method.

Is there an equivalent way of visiting a URL directly, and then catch any 
popups?

Alternatively, I notice that after a few seconds I get a wait_until timeout 
error, is there a way of catching this and handling it?

This is what I want to achieve:

ie.goto(url)
if i_got_download_popup then
  click "cancel" in the popup
  display warning
else
  display success notice
end

Thanks
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6633&messageID=18991#18991
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to