OK, I have more clarity on why ie.down_load_time and I aren't getting along. My pages finish loading...and as the page loads we kick off a bunch of asynchronous JS. I suspect that ie.wait is doing just what it ought to, but I (and perhaps others using asynchronous JS) seem to need something additional as well.
For a bit more context, Freebase is a graph of semantic data. When I go to a url for Clint Eastwood, I load a page. As the page is loading, it kicks off a query to find out what 'types' this topic (Clint Eastwood) is, and what properties those types have. This returns that his types and their properties are, say: Person [name, DOB, parents, children, siblings, ...] Film Actor [film performances, IMDB entry, ...] US Politician [party, offices held, ...] ...and so on. Then we kick off a final JS call to find out the values of these properties for this particular topic (Clint Eastwood). For example: Person [name = 'Clint Eastwood', DOB = May 31 1930,...] Film Actor [film performances = ['Unforgiven', 'True Crime', 'The Good, the Bad and the Ugly', ...], IMDB entry = 'http://www.imdb.com/name/nm0000142/', ...] In practice, 15-30% of the time the page finishes loading (ie.waitcompletes) before the final JS call completes (the values of the various properties are loaded). I've added a check if a known value exists immediately after ie.goto(url) and it fails fairly often. I'd like to find a way of defining page completion for me as (ie.wait completes && my 3rd JS call completes). Perhaps it could/should be generalized to an option that others can use as well, if they have asychronous JS called on page load? If anyone is interested in looking at the page, I'd happily give you login info. (We are in an invite-only alpha right now, but I can hand out invites to individuals). I'd appreciate any suggestions! Thanks, Jeff http://testingjeff.wordpress.com
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general