mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Improve documentation of Capybara::Node::Actions#select.
This commit is contained in:
parent
b022ca9926
commit
00604b6102
1 changed files with 2 additions and 1 deletions
|
@ -102,9 +102,10 @@ module Capybara
|
|||
# box is a multiple select, +select+ can be called multiple times to select more than
|
||||
# one option. The select box can be found via its name, id or label text.
|
||||
#
|
||||
# page.uncheck('German')
|
||||
# page.select 'March', :from => 'Month'
|
||||
#
|
||||
# @param [String] locator Which check box to uncheck
|
||||
# @param [Hash{:from => String}] The id, name or label of the select box
|
||||
#
|
||||
def select(value, options={})
|
||||
if options.has_key?(:from)
|
||||
|
|
Loading…
Add table
Reference in a new issue