lib/page.rb in gridium-1.1.10 vs lib/page.rb in gridium-1.1.11

- old
+ new

@@ -87,21 +87,23 @@ def self.wait_for_ajax Timeout.timeout(Gridium.config.page_load_timeout) do loop until jquery_loaded? end + rescue Timeout::Error => e + Log.warn("[GRIDIUM::Page] Timed-out waiting for ajax") end def self.jquery_loaded? self.evaluate_script("jQuery.active").zero? end # # JQuery click # @param [String] CSS selector - # - # Occasionaly selenium is unable to click on elements in the DOM which have some - # interesting React goodies around the element. + # + # Occasionaly selenium is unable to click on elements in the DOM which have some + # interesting React goodies around the element. # def self.jquery_click(selector) Driver.evaluate_script("$(\"#{selector}\").click().change();") end