Sha256: e8f644e3bf6524ecab70d4f74ab0ffde8a1b165de7dc2e08e9db69992f81d953
Contents?: true
Size: 905 Bytes
Versions: 2
Compression:
Stored size: 905 Bytes
Contents
require 'spec_helper' describe Prickle::Capybara::Popup do let(:prickly) { Prickly.new } before do Prickle::Capybara.wait_time = nil Capybara.current_driver = :webkit end before(:each) do prickly.visit '/' end after do Capybara.use_default_driver end context 'Managing webkit popups', :js => true, :driver => :webkit do it 'can confirm an alert box' do alert = prickly.popup.accept { prickly.click_by_name 'popups' } alert.contains_message? "Hello" end it 'can confirm a popup' do alert = prickly.popup.confirm { prickly.click_by_name 'confirm_box' } alert.contains_message? "Click yes to continue" end it 'can dismiss a popup' do alert = prickly.popup.dismiss { prickly.click_by_name 'confirm_box' } alert.contains_message? "Click yes to continue" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prickle-0.1.0 | spec/capybara/popups/webkit_spec.rb |
prickle-0.0.6 | spec/capybara/popups/webkit_spec.rb |