lib/element.rb in gridium-1.1.31 vs lib/element.rb in gridium-1.1.32

- old
+ new

@@ -138,13 +138,13 @@ if element.enabled? ElementExtensions.highlight(self) if Gridium.config.highlight_verifications $verification_passes += 1 begin element.click - rescue Exception => e + rescue StandardError => e Log.warn("[GRIDIUM::Element] Click Exception retrying...") - sleep 0.15 + sleep 1 click_retry -= 1 if click_retry >= 0 retry else Log.error("[GRIDIUM::Element] Click Exception #{e}") @@ -369,10 +369,10 @@ images.last.save(element_screenshot_path) return false else return true end - rescue Exception => e + rescue StandardError => e Log.error("There was a problem comparing element images. #{e.to_s}") end end def method_missing(method_sym, *arguments, &block)