Jeff Fry wrote: > 100.times do > url = $url_root + "/view?id=%239202a8c04000641f8000000000056de6" > start = Time.now > $ie.goto(url) > if $ie.link(:text,'Million Dollar Baby').exists? > $results_array << $ie.down_load_time.to_s > p '$ie.down_load_time: '+$ie.down_load_time.to_s > else # there's a problem with the page > $results_array << 'e' > p 'e' > end #if > took = Time.now - start > > I'm curious why I get up to .5 seconds more for 'took' than I do for > down_load_time. Does down_load_time have a way of knowing when > everything on the page has finished loading on a page where various > elements render in phases? You should take a look at the code in the wait method that compiles the download_time (which really is the page load time).
ie.goto calls navigate before starting the counter, you could measure it to see how much time it is taking. You are also calling ie.link().exists? before stopping your counter and it is also probably taking some time. Bret _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general