while doc = documents_to_wait_for.shift
begin
until doc.readyState == "complete" do
sleep a_moment
end
@url_list << doc.url unless @url_list.include?(doc.url)
doc.frames.length.times do |n|
begin
documents_to_wait_for << doc.frames[n.to_s].document
rescue WIN32OLERuntimeError
end
end
rescue WIN32OLERuntimeError
end
end
The line with "doc.frames.length.times" is failing because
"doc.frames.length" is returning nil. I have no idea why this is
happening in your case.
We can probably patch Watir with this information alone, but if we had a
better understanding of the conditions that lead to this it would give
me more confidence.
We need to track this problem in Jira.
Bret
--
Bret Pettichord
Lead Developer, Watir, http://wtr.rubyforge.org
Blog, http://www.io.com/~wazmo/blog