summaryrefslogtreecommitdiff
path: root/spec/support/js_patch.rb
blob: 0d4ab264e858956c04146a28f001d670646362ad (plain)
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