js_patch.rb 198 Bytes Edit Raw Blame History 1 2 3 4 5 6 module JsPatch def confirm_js_popup page.evaluate_script("window.alert = function(msg) { return true; }") page.evaluate_script("window.confirm = function(msg) { return true; }") end end