1
0
Fork 0
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:
Jon Leighton 2013-01-28 13:39:14 +00:00
parent 84e0417a4f
commit e555518796

View file

@ -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