title: Cucumber selenium-webdriver Chrome
body: <p>I'm running some tests in that I'm downloading a PDF from a webpage.  I'm running tests in Chrome and I want the file to go to a folder in my test pack.  I have the following block of code in my env file@</p>
  
  <pre><code>if ENV['chrome']
  Capybara.default_driver = :selenium
  Capybara.register_driver :selenium do |app|
    Capybara::Selenium::Driver.new(app, :browser =&gt; :chrome,
    :desired_capabilities =&gt; Selenium::WebDriver::Remote::Capabilities.chrome(
      'chromeOptions' =&gt; {
        'args' =&gt; [ "--window-size=1920,1080" ],
        'prefs' =&gt; {
        'download.default_directory' =&gt; File.expand_path("path/to/download"),
        'download.prompt_for_download' =&gt; false,
        'plugins.plugins_disabled' =&gt; ["Chrome PDF Viewer"]
          }
        }
      )
    )
  end
  </code></pre>
  
  <p>It clearly states that the prompt for download is false yet a window still appears asking me where I want to save the file once I've chosen to download the pdf.</p>
  
  <p>Have I done something wrong in my block of code?</p>