This code snip says it takes about 36 seconds for download complete require 'watir' # use watir gem test_site = 'http://www.igindex.co.uk' # set a variable ie = Watir::Browser.new # open the IE browser ie.goto(test_site) # load url, go to site ie.maximize() sleep(2) ie.bring_to_front() puts ie.down_load_time.to_s
I assume you dont care if its complete, just that some object is visible or exists? On Oct 6, 12:01 pm, llemirtrauts <smrim...@gmail.com> wrote: > Hi, > > I'm pretty new to Watir and I'm having an intermittent problem with > scripts hanging when a web page doesn't fully load. > > I'm trying to run:- > > Watir::IE.start("http://www.igindex.co.uk") > > This sometimes works but sometimes the the start method doesn't return > and the script simply hangs indefinitely so the rest of the script > doesn't run. > > The issue with the website in question is probably due to the fact > that it maintains a permanent http connection to stream data. This may > be causing Watir to think the page hasn't fully loaded. > > Is there any way to force a Watir script to continue running before it > thinks the page has fully loaded? > > thanks, > Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---