123456789_123456789_123456789_123456789_123456789_

Module: Selenium::WebDriver::DriverExtensions::DownloadsFiles Private

Instance Attribute Summary

Instance Attribute Details

#download_path=(path) (writeonly)

Sets download path for ::Selenium::WebDriver::Chromium.

Parameters:

  • path (String)
[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/driver_extensions/downloads_files.rb', line 30

def download_path=(path)
  params = {
    'cmd' => 'Page.setDownloadBehavior',
    'params' => {
      'behavior' => 'allow',
      'downloadPath' => path
    }
  }
  @bridge.send_command(params)
end