Sha256: a1c240c240c0c7fed8e476efcd8638d4ec9dea919b3a21ece37ae9fc9aab747a
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true class Capybara::Selenium::ChromeNode < Capybara::Selenium::Node def set_file(value) # rubocop:disable Naming/AccessorMethodName super(value) rescue ::Selenium::WebDriver::Error::ExpectedError => e if e.message =~ /File not found : .+\n.+/m raise ArgumentError, "Selenium with remote Chrome doesn't currently support multiple file upload" end raise end private def bridge driver.browser.send(:bridge) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capybara-3.4.2 | lib/capybara/selenium/nodes/chrome_node.rb |
capybara-3.4.1 | lib/capybara/selenium/nodes/chrome_node.rb |
capybara-3.4.0 | lib/capybara/selenium/nodes/chrome_node.rb |