title: How to address "The constructor ChromeDriver(Capabilities) is deprecated" and WebDriverException: Timed out error with ChromeDriver and Chrome
body: <p>I'm trying to config the default download directory as below, it's works correctly but I'm having two issues : </p>
  
  <pre><code>    String exePath = "src\\Drivers\\chromedriver.exe";
      System.setProperty("webdriver.chrome.driver", exePath);
      String downloadFilepath = "U:\\Data\\Download";
      HashMap&lt;String, Object&gt; chromePrefs = new HashMap&lt;String, Object&gt;();
      chromePrefs.put("profile.default_content_settings.popups", 0);
      chromePrefs.put("download.default_directory", downloadFilepath);
      ChromeOptions options = new ChromeOptions();
      options.setExperimentalOption("prefs", chromePrefs);
      DesiredCapabilities cap = DesiredCapabilities.chrome();
      cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
      cap.setCapability(ChromeOptions.CAPABILITY, options);
      driver = new ChromeDriver(cap);
      driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
  </code></pre>
  
  <ol>
  <li>It's telling me that <strong>The constructor ChromeDriver(Capabilities) is
  deprecated</strong></li>
  <li><p>When I replay the test several times it happens to have a Webdrive TimeOut exception</p>
  
  <pre><code>juin 13, 2018 5:23:27 PM org.openqa.selenium.remote.DesiredCapabilities chrome
  INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
  FAILED CONFIGURATION: @BeforeMethod beforeMethod
  org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
  Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
  System info: host: 'PB02-VD037', ip: '10.143.73.85', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_171'
  Driver info: driver.version: ChromeDriver
  </code></pre></li>
  </ol>