class Capybara::Selenium::MarionetteNode

def upload(local_file)

def upload(local_file)
  unless File.file?(local_file)
    raise ArgumentError, "You may only upload files: #{local_file.inspect}"
  end
  result = bridge.http.call(:post, "session/#{bridge.session_id}/file", file: Selenium::WebDriver::Zipper.zip_file(local_file))
  result['value']
end