[Wtr-general] Referencing dynamically generated objects
Bret Pettichord
bret at pettichord.com
Fri Jan 5 00:02:29 EST 2007
Ethan Jewett wrote:
> It looks to me like the following piece of code in watir.rb (after the
> second method of the Watir module) is causing rdoc to stop parsing at
> that point.
>
> # add an error checker for http navigation errors, such as 404, 500 etc
> NAVIGATION_CHECKER = Proc.new do |ie|
> if ie.document.frames.length > 1
> 1.upto ie.document.frames.length do |i|
> begin
> ie.frame(:index, i).check_for_http_error
> rescue Watir::Exception::UnknownFrameException
> # frame can be already destroyed
> end
> end
> else
> ie.check_for_http_error
> end
> end
>
> When I comment this out, rdoc seems to get everything.
>
Thanks for the help. This code was already causing other problems and
we've been threatening to remove it.
We'll move it to contrib.
More information about the Wtr-general
mailing list