[Wtr-general] IE.GoTo - Can You Set A Timeout or an Idle?

Norm forum-watir-users at openqa.org
Thu Oct 12 16:09:06 EDT 2006


I use Watir/Ruby for automating various business tasks, more-o than testing. I have found that the IE.GoTo statement is very unreliable, in that many web-pages for sites I automate seem to never completely load.

Essentially, in the status bar you will see something like "1 item remaing..." and that item never finishes. This can be images, movies, sound, mouse cursors, all sorts of things cause this behavior (page not fully loading).

The result is that Watir/Ruby never moves on. It gets stuck in an endless loop waiting for the page to finish loading.

[b]QUESTION:[/b] Is there a way to set a Global timeout for the .GoTo function so I can make it never wait more than, say 90 seconds for a page to load? Even if it just failed at some point I could rescue it, but it doesn't fail, it just hangs there.

I have seen this same problem posed on a few boards, but no one ever has the answer/fix.

Thanks in advance for any help you can provide!
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4767&messageID=13162#13162


More information about the Wtr-general mailing list