Method: Capybara::Selenium::Driver::EdgeDriver#download_path=

Defined in:
lib/capybara/selenium/driver_specializations/edge_driver.rb

#download_path=(path) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/capybara/selenium/driver_specializations/edge_driver.rb', line 57

def download_path=(path)
  if @browser.respond_to?(:download_path=)
    @browser.download_path = path
  else
    # Not yet implemented in seleniun-webdriver for edge so do it ourselves
    execute_cdp('Page.setDownloadBehavior', behavior: 'allow', downloadPath: path)
  end
end