# File lib/capybara/node/actions.rb, line 140 def attach_file(locator, path) Array(path).each do |p| raise Capybara::FileNotFound, "cannot attach file, #{p} does not exist" unless File.exist?(p.to_s) end find(:file_field, locator).set(path) end