mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Update wording and add default values to attach_file docs [ci skip]
This commit is contained in:
parent
c6b275c955
commit
d8a344fe36
1 changed files with 4 additions and 4 deletions
|
@ -150,10 +150,10 @@ module Capybara
|
|||
# @param [String] locator Which field to attach the file to
|
||||
# @param [String] path The path of the file that will be attached, or an array of paths
|
||||
#
|
||||
# @option options [Symbol] match The matching strategy to use (:one, :first, :prefer_exact, :smart)
|
||||
# @option options [Boolean] exact Match the exact locator name or accept a partial match
|
||||
# @option options [Fixnum] wait If using a Javascript driver, number of seconds during which the element will be searched for.
|
||||
# @option options [Boolean] multiple Match field which allows multiple file selection
|
||||
# @option options [Symbol] match (:smart) The matching strategy to use (:one, :first, :prefer_exact, :smart).
|
||||
# @option options [Boolean] exact (true) Match the exact label name/contents or accept a partial match.
|
||||
# @option options [Fixnum] wait (Capybara.default_max_wait_time) If using a Javascript driver, maximum number of seconds during which the element will be searched for.
|
||||
# @option options [Boolean] multiple (true) Match field which allows multiple file selection
|
||||
#
|
||||
def attach_file(locator, path, options={})
|
||||
Array(path).each do |p|
|
||||
|
|
Loading…
Reference in a new issue