module Capybara::Selenium::Node::FileInputClickEmulation

def click(keys = [], **options)

def click(keys = [], **options)
  super
rescue Selenium::WebDriver::Error::InvalidArgumentError
  return emulate_click if attaching_file? && visible_file_field?
  raise
end