On 5/18/06, Adrian Rutter <[EMAIL PROTECTED]> wrote: > > Hi, > > I was wondering if Watir had a method that will make the script wait until > a specific object appeared? > > Also, is there a method to wait until a page has successfully loaded?
Watir actually does wait for IE to tell it that the page is loaded. Unfortunately, if there is a frame or iframe in that page *not* loaded the "outer" IE won't know it. I've recently really been enjoying constructs like this to handle such issues: def do_rules #DO SOMETHING USEFUL end def navigate_to_rules begin @ie.image(:name,"utilities").click do_rules rescue sleep 1 navigate_to_rules end end _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
