title: Pass driver ChromeOptions and DesiredCapabilities?
body: <p>The new Google chrome update causes this message in the browser "You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will suffer." </p>
  
  <p>From what I read on selenium bug reports, the temporary solution is to start webdriver with </p>
  
  <pre><code>options.AddArgument("test-type")
  </code></pre>
  
  <p>I was already passing DesiredCapabilities when creating the driver. How can I pass both ChromeOptions and DesiredCapabilities to the driver?</p>
  
  <pre><code>DesiredCapabilities capabilities = DesiredCapabilities.chrome();
  capabilities.setCapability("chrome.switches", Arrays.asList("--incognito"));
  
  ChromeOptions options = new ChromeOptions();
  options.addArguments("test-type");
  
  WebDriver driver = new ChromeDriver(capabilities);
  </code></pre>