1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Update lib/capybara/node/matchers.rb

The example given for has_selector? with a count is misleading. As it specifies "p#foo", this is referring to a p element with an id of "foo". This should only appear once on a page.
This commit is contained in:
Kane Rogers 2013-02-09 17:29:15 +11:00
parent 8368069cfd
commit 48badb976b

View file

@ -13,7 +13,7 @@ module Capybara
# By default it will check if the expression occurs at least once, # By default it will check if the expression occurs at least once,
# but a different number can be specified. # but a different number can be specified.
# #
# page.has_selector?('p#foo', :count => 4) # page.has_selector?('p.foo', :count => 4)
# #
# This will check if the expression occurs exactly 4 times. # This will check if the expression occurs exactly 4 times.
# #