Sha256: 2ac00af8d66f4b2003e3aafa728bcdf052a2bcf1c124aac93e473449cb14bb5d
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
require 'spec_helper' describe Prickle::Capybara::Popup do let(:prickly) { Prickly.new } before do Prickle::Capybara.wait_time = nil end before(:each) do prickly.visit '/' end context 'Managing selenium popups', :javascript => true do it 'can confirm an alert box' do prickly.click_by_name 'popups' prickly.confirm_popup end it 'can confirm a popup' do prickly.click_by_name 'confirm_box' prickly.confirm_popup end it 'can dismiss a popup' do prickly.click_by_name 'confirm_box' prickly.dismiss_popup prickly.popup_message.should eq "Aborting." prickly.confirm_popup end context "matching text" do it "can verify the content of a popup" do prickly.click_by_name "popups" prickly.popup_message_contains? "Hello" prickly.dismiss_popup end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prickle-0.1.0 | spec/capybara/popups/selenium_spec.rb |
prickle-0.0.6 | spec/capybara/popups/selenium_spec.rb |