Hi all,

The issue:

I need to test an internal website. Regarding this specific task, watir
seems to be the perfect tool. It works great, but with this particular
website, I'm already stuck at loading its homepage. What happens is that I'm
opening the homepage of the website by calling "<IE-object>.goto("<URL>")",
the homepage seems to be loaded, but the lines after the "goto"-statement
aren't processed and the testscript seems to wait forever.

Possible cause:

It seems that the "goto"-method of the IE-instance is waiting forever.
Probably it never gets the signal that the website is completely loaded.
Although it looks like the website IS completely loaded - all content is
shown and IE doesn't show any "in progress" indicators - I guess IE still
waits for something to finish. As this website is entirely bloated with
(obfuscated) JavaScript, I don't consider it impossible that there somewhere
a bug in those scripts (like endless loops) that make IE think the website
is still loading. Or maybe it's just that IE can't handle all the JavaScript
mess and fails to report the corrent message.

I didn't debug the JavaScript-code because most of it is (hardly) unreadable.

Solution?

Before I start to develop a very hackerish work-around, I'm wondering if
more people encounter problems with hanging "goto"-statements in Ruby/Watir.
If so, how do you handle these issues?

Thanks in advance!

Durk


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to