lib/watir/ie-class.rb in watir-2.0.0 vs lib/watir/ie-class.rb in watir-2.0.1
- old
+ new
@@ -342,10 +342,10 @@
# Are we attached to an open browser?
def exists?
begin
!!(@ie.name =~ /Internet Explorer/)
- rescue WIN32OLERuntimeError
+ rescue WIN32OLERuntimeError, NoMethodError
false
end
end
alias :exist? :exists?