title: set chrome options with remote driver
body: <p>So there's a nice <a href="http://peter.sh/experiments/chromium-command-line-switches/">long list of switches</a> that can be passed to the chromedriver.</p>
  
  <p>I would like to use some of them, specifically <code>--disable-logging</code>.</p>
  
  <p>I do no want to (only) use chromedriver locally though, I'd like to write all my code to use  <code>webdriver.Remote()</code>.</p>
  
  <p>Here's the code I use to setup a chrome driver and it works great for a vanilla chrome instance.</p>
  
  <pre><code>driver = webdriver.Remote(
      command_executor = 'http://127.0.0.1:4444/wd/hub',
      desired_capabilities = {
          'browserName': 'chrome',
      }
  )
  </code></pre>
  
  <p>However I can not figure out how to pass in additional options.</p>
  
  <p>When I look at <code>driver.capabilities</code> I see the following</p>
  
  <pre><code>{
      u'rotatable': False,
      u'browserConnectionEnabled': False,
      u'acceptSslCerts': False,
      u'cssSelectorsEnabled': True,
      u'javascriptEnabled': True,
      u'nativeEvents': True,
      u'databaseEnabled': False,
      u'chrome.chromedriverVersion': u'23.0.1240.0',
      u'locationContextEnabled': False,
      u'takesScreenshot': True,
      u'platform': u'MAC',
      u'browserName': u'chrome',
      u'webdriver.remote.sessionid': u'1352096075502',
      u'version': u'22.0.1229.94',
      u'applicationCacheEnabled': False,
      u'webStorageEnabled': True,
      u'handlesAlerts': True,
      u'chrome.nativeEvents': False
  }
  </code></pre>
  
  <p>I don't <a href="http://selenium-python.readthedocs.org/en/latest/api.html">see any other arguments</a> (besides <code>desired_capabilities</code>) for passing arguments to chromedriver through <code>webdriver.Remote</code>. Is this true? Am I missing something? Is there some other strategy for customizing chromedriver?</p>
  
  <p>There's a nice example on the CromeDrive wiki page that shows <a href="http://code.google.com/p/selenium/wiki/ChromeDriver">"Starting Chromium with Specific Flags"</a> however all the example are for <code>webdriver.Chrome()</code>; the example is in java too, so it might not even work in python.</p>
  
  <p>If anyone has gotten this to work or can tell me this just will not work I'd appreciate it. Thanks.</p>
  
  <p><strong>New Problem</strong></p>
  
  <p>I'm not sure the best way to handle follow up questions.</p>
  
  <p>So, I got the answer to my question, but I'm still having trouble turning off logging. Checkout the following logger line.</p>
  
  <pre><code>[0.455][INFO]:      Launching chrome: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --enable-logging --log-level=1 --disable-hang-monitor --disable-prompt-on-repost --dom-automation --full-memory-crash-report --no-default-browser-check --no-first-run --disable-background-networking --disable-sync --disable-translate --disable-web-resources --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --use-mock-keychain --ignore-certificate-errors --disable-logging about:blank
  </code></pre>
  
  <p>I can pass the argument <code>--disable-logging</code> to chromedriver but all it seems to care about is the first argument enabling logging. I guess I need to find out where the default arguments are for new instances of Chrome are kept.</p>