Sha256: 0f9b1b2646f1a74bae9317081b94df063fa2f52c362027c7a301bbd3323a4ddb

Contents?: true

Size: 707 Bytes

Versions: 10

Compression:

Stored size: 707 Bytes

Contents

require File.expand_path("../watirspec/spec_helper", __FILE__)

describe "Button" do

  before :each do
    browser.goto(WatirSpec.files + "/forms_with_input_elements.html")
  end

  describe "#click_and_attach" do
    it "returns a new browser instance with the popup page" do
      b = browser.button(:name, 'new_popup_window').click_and_attach
      b.should_not == browser
      b.title.should == "Tables"
      browser.title.should == "Forms with input elements"
    end

    it "returns a new browser with same log_level as original" do
      b = browser.button(:name, 'new_popup_window').click_and_attach
      b.should_not == browser
      b.log_level.should == browser.log_level
    end
  end

end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
celerity_thingista-0.9.3 spec/button_spec.rb
celerity_thingista-0.9.2 spec/button_spec.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/button_spec.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/button_spec.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/button_spec.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/button_spec.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/button_spec.rb
celerity-0.9.2 spec/button_spec.rb
celerity-0.9.1 spec/button_spec.rb
no-click-exception-celerity-0.9.0 spec/button_spec.rb