lib/watir/ie-class.rb in watir-1.6.6 vs lib/watir/ie-class.rb in watir-1.6.7.rc1
- old
+ new
@@ -1,8 +1,9 @@
module Watir
class IE
- include Watir::Exception
+ include WaitHelper
+ include Exception
include Container
include PageContainer
# Maximum number of seconds to wait when attaching to a window
@@attach_timeout = 2.0 # default value
@@ -292,10 +293,10 @@
ieTemp = nil
begin
Watir::until_with_timeout do
ieTemp = IE._find how, what
end
- rescue TimeOutException
+ rescue Watir::Wait::TimeoutError
raise NoMatchingWindowFoundException,
"Unable to locate a window with #{how} of #{what}"
end
@ie = ieTemp
end