mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Remove needless parameter[ci skip]
There is duplicated parameter about options hash. This commit remove them with @oveload directive from doc.
This commit is contained in:
parent
fe762074ce
commit
3016745553
1 changed files with 9 additions and 6 deletions
|
@ -187,6 +187,7 @@ module Capybara
|
|||
#
|
||||
# page.select 'March', from: 'Month'
|
||||
#
|
||||
# @overload select(value = nil, from: nil, **options)
|
||||
# @macro waiting_behavior
|
||||
#
|
||||
# @param value [String] Which option to select
|
||||
|
@ -211,11 +212,13 @@ module Capybara
|
|||
#
|
||||
# page.unselect 'March', from: 'Month'
|
||||
#
|
||||
# @overload unselect(value = nil, from: nil, **options)
|
||||
# @macro waiting_behavior
|
||||
#
|
||||
# @param value [String] Which option to unselect
|
||||
# @param from [String] The id, Capybara.test_id attribute, name or label of the select box
|
||||
#
|
||||
#
|
||||
# @return [Capybara::Node::Element] The option element unselected
|
||||
def unselect(value = nil, from: nil, **options)
|
||||
scope = from ? find(:select, from, options) : self
|
||||
|
|
Loading…
Reference in a new issue