Skip to content

Instantly share code, notes, and snippets.

View duderman's full-sized avatar
🤘

Nick Norkin duderman

🤘
  • London
  • 04:51 (UTC +01:00)
View GitHub Profile
@michaelglass
michaelglass / alerts_and_confirms.rb
Last active September 24, 2019 10:15
test alerts & confirms in poltergeist & capybara webkit
module AlertConfirmer
class << self
def reject_confirm_from &block
handle_js_modal 'confirm', false, &block
end
def accept_confirm_from &block
handle_js_modal 'confirm', true, &block
end