Fix some documentation errors

This commit is contained in:
Jonas Nicklas 2010-07-17 19:04:47 +02:00
parent 0ac9be6cbd
commit 2d70c37b25
2 changed files with 4 additions and 4 deletions

View File

@ -163,8 +163,8 @@ automatically follows any redirects, and submits forms associated with buttons.
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
click_link_or_button('Link Text')
click_link_or_button('Button Value')
=== Interacting with forms
@ -189,7 +189,7 @@ certain elements, and working with and manipulating those elements.
page.has_css?('table tr.foo')
page.has_content?('foo')
You can use with RSpecs magic matchers:
You can these use with RSpec's magic matchers:
page.should have_xpath('//table/tr')
page.should have_css('table tr.foo')

View File

@ -22,7 +22,7 @@ module Capybara
# session.fill_in('Foo', :with => 'Bar') # from Capybara::Node::Actions
# bar = session.locate('#bar') # from Capybara::Node::Finders
# bar.select('Baz', :from => 'Quox') # from Capybara::Node::Actions
# session.has_css('#foobar') # from Capybara::Node::Matchers
# session.has_css?('#foobar') # from Capybara::Node::Matchers
#
class Node
attr_reader :session, :base