Clarify in README that "within" scopes to the first element

This commit is contained in:
Jo Liss 2011-05-01 02:33:41 +02:00
parent 7b69aa669e
commit e92ef27842
1 changed files with 3 additions and 0 deletions

View File

@ -411,6 +411,9 @@ method. Optionally you can specify which kind of selector to use.
fill_in 'Name', :with => 'Jimmy'
end
Note that <tt>within</tt> will scope the actions to the _first_ (not _any_)
element that matches the selector.
There are special methods for restricting the scope to a specific fieldset,
identified by either an id or the text of the fieldet's legend tag, and to a
specific table, identified by either id or text of the table's caption tag.