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:
parent
8368069cfd
commit
48badb976b
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module Capybara
|
|||
# By default it will check if the expression occurs at least once,
|
||||
# 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.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue