title: Selenium C# Chromedriver download file on TeamCity
body: <p>I am automating downloading and then reading a pdf through ITextSharp. This works perfectly when run locally, no issues. When run in CI is where issues occur, I believe the file is not downloading. The way I am executing the download is by navigating to the download url (<code>Driver.Navigate().GoToUrl(PdfDlUrl)</code>) which I believe is working otherwise an error would prompt and fail the test there. Instead, the error is no file is at that location. Logging onto our build agent to check, I can confirm there is nothing downloaded / no file.  </p>
  
  <p>What I have for my chromeDriver options are:</p>
  
  <pre><code>chromeOptions.AddArgument("disable-popup-blocking");
  chromeOptions.AddArgument("enable-devtools-experiments");   
  chromeOptions.AddLocalStatePreference("download.prompt_for_download", false);
  chromeOptions.AddLocalStatePreference("plugins.always_open_pdf_externally", true);
  chromeOptions.AddUserProfilePreference("download.default_directory", Pdf.GetDefaultPdfDlPath());
  chromeOptions.AddUserProfilePreference("download.directory_upgrade", false);
  </code></pre>
  
  <p>(note the pdf url is set to desktop via <code>Environment.GetFolderPath(Environment.SpecialFolder.Desktop);</code>) Is it possible I missed something? We use Selenoid so I'm concerned there may be something up with the chromedriver we have there. </p>