mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
Fix multiple-file upload
This commit is contained in:
parent
84e0417a4f
commit
e555518796
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ module Capybara::Poltergeist
|
|||
when 'checkbox'
|
||||
click if value != checked?
|
||||
when 'file'
|
||||
command :select_file, value.to_s
|
||||
files = value.respond_to?(:to_ary) ? value.to_ary.map(&:to_s) : value.to_s
|
||||
command :select_file, files
|
||||
else
|
||||
command :set, value.to_s
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue