Thank you for the very detailed report. The error is happening in the
"wait" code that is waiting for the page to load. In fact it is failing
in the code that is making sure that every document in every frame is
loaded, and I am wondering if the problem is related to their either
being lots of frames or if somehow frames are being added or removed
during load.
In any case, this change should probably prevent the problem from
happening. I have applied it to trunk, and it will be included in the
next release of Watir.
Bret
### Eclipse Workspace Patch 1.0
#P watir-all
Index: watir/lib/watir/ie.rb
===================================================================
--- watir/lib/watir/ie.rb (revision 1499)
+++ watir/lib/watir/ie.rb (working copy)
@@ -506,7 +506,7 @@
doc.frames.length.times do |n|
begin
documents_to_wait_for << doc.frames[n.to_s].document
- rescue WIN32OLERuntimeError
+ rescue WIN32OLERuntimeError, NoMethodError
end
end
rescue WIN32OLERuntimeError
My best guess is that there are multiple frames in the page, and Watir
is trying to make sure that all the