Skip to content

Commit

Permalink
Clarify in README that "within" scopes to the first element
Browse files Browse the repository at this point in the history
  • Loading branch information
joliss committed May 1, 2011
1 parent 7b69aa6 commit e92ef27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e92ef27

Please sign in to comment.