lib/watir/element_extensions.rb in commonwatir-2.0.4 vs lib/watir/element_extensions.rb in commonwatir-3.0.0.rc1
- old
+ new
@@ -31,10 +31,10 @@
#
# Returns true if the element exists and is visible on the page
#
def present?
- exists? && visible?
+ exists? && visible? rescue false
end
#
# Waits until the element is present.
#