title: Possible to add Chrome option and capabilities together?
body: <p>Possible to add Chrome option and capabilities together?</p>
  
  <ol>
  <li><p>In need to combine the following listed below together, is it even possible?</p>
  
  <pre><code>System.setProperty("webdriver.chrome.driver", Base_Page.getConstant(Constant.CHROME_DRIVER_DIRECTORY));
  ChromeOptions options = new ChromeOptions();
  string[] switches = {"user-data-dir=C:\\Users\\AppData\\Local\\Google\\Chrome\\User Data"};
  options.addArguments("user-data-dir=C:\\Users\\AppData\\Local\\Google\\Chrome\\User Data");
  options.addArguments("test-type");
  options.addArguments("--start-maximized");
  options.addArguments("--disable-extensions");
  options.addArguments("no-sandbox");
  
  LoggingPreferences logPrefs = new LoggingPreferences();
  logPrefs.enable(LogType.BROWSER, Level.ALL);
  options.(CapabilityType.LOGGING_PREFS, logPrefs);
  
  DesiredCapabilities caps = DesiredCapabilities.chrome();
  caps.setCapability(ChromeOptions.CAPABILITY, options);
  WebDriver driver = new ChromeDriver(caps);
  
  DesiredCapabilities caps = DesiredCapabilities.chrome();
  LoggingPreferences logPrefs = new LoggingPreferences();
  logPrefs.enable(LogType.BROWSER, Level.ALL);
  caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);
  caps.setCapability("chrome.switches", switches);
  //webdriver = new ChromeDriver(caps);
  webdriver = new ChromeDriver(options);
  </code></pre></li>
  </ol>