title: Protractor - Setting DPI with chromeOptions
body: <p>I'm writing functional tests with protractor and am trying to emulate a mobile device using chrome on a desktop. I've successfully set the user agent with:</p>
  
  <pre><code>config.capabilities = {
  browserName: 'chrome',
  chromeOptions: {
      args: ['--user-agent="Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"']
      }
  };
  </code></pre>
  
  <p>Now, I'd like to change the DPI to reflect mobile devices (usually with a DPI of 2). I've explored other args and came across --ash-host-window-bounds (<a href="http://peter.sh/experiments/chromium-command-line-switches/#ash-host-window-bounds" rel="nofollow">http://peter.sh/experiments/chromium-command-line-switches/#ash-host-window-bounds</a>). I've tried:</p>
  
  <pre><code>chromeOptions: { args: ['--ash-host-window-bounds="1024x768*2"'] }
  </code></pre>
  
  <p>It seems like the argument doesn't work with protractor, as it does not affect the window dimensions when removing the DPI argument.</p>
  
  <p>How could I set the DPI? Or, how could I enable Chrome Mobile Emulation via chromeOptions?</p>