mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Clarify in README that "within" scopes to the first element
This commit is contained in:
parent
7b69aa669e
commit
e92ef27842
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue