diff --git a/Manifest.txt b/Manifest.txt index 50a714c5..3f8fdbb8 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -2,7 +2,6 @@ History.txt Manifest.txt README.rdoc Rakefile -examples/webcat.rb lib/capybara.rb lib/capybara/cucumber.rb lib/capybara/driver/culerity_driver.rb diff --git a/examples/webcat.rb b/examples/webcat.rb deleted file mode 100644 index d88ae671..00000000 --- a/examples/webcat.rb +++ /dev/null @@ -1,36 +0,0 @@ -session = Capybara::Session.new('http://localhost:3000') - -session.visit '/' - -session.driver.trigger :click, '//div[@id=foo]//a' -session.driver.trigger :mouseover, '#foo a.bar' # will be ignored by drivers who do not support it - -nodelist = session.find 'li#foo a' -nodelist.empty? -nodelist.first.tag_name # => 'a' -nodelist.first.text # => 'a cute link' -nodelist.first.html # => 'a cute link' -nodelist.first.attributes # => { :href => '/blah' } -nodelist.first.trigger :click - -session.request.url # => '/blah' -session.response.ok? # => true - -# fancy stuff, just builds on the stuff above! - -session.click_link 'a cute link' -session.click_button 'an awesome button' -session.within '#foo' do - click_link 'a cute link' -end -session.fill_in 'foo', :with => 'bar' -session.choose 'Monkey' -session.check 'I am awesome' -session.wait_for '#fooo" - -# In cuke: - -When 'I am awesome' do - page.check 'I am awesome' - page.click_button 'FooBar' -end