Sha256: bfe88a1670fe80679bff53c3aaa79962a05f1771ee234de0769c41136087baa9

Contents?: true

Size: 701 Bytes

Versions: 10

Compression:

Stored size: 701 Bytes

Contents

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

describe "Button" do

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

  describe "#click_no_wait" do
    it "behaves like #click" do
      browser.button(:id, 'new_user_submit').click_no_wait
      browser.text.should include("You posted the following content:")
    end
  end

end

describe "Link" do

  before :each do
    browser.goto(WatirSpec.host + "/non_control_elements.html")
  end

  describe "#click_no_wait" do
    it "behaves like #click" do
      browser.link(:text, "Link 3").click_no_wait
      browser.text.include?("User administration").should be_true
    end
  end

end

Version data entries

10 entries across 10 versions & 4 rubygems

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