title: How do I modify Google Chrome user agent string with Robot Framework
body: <p>I tried to modify the user agent string using <code>Open Browser</code> with <code>desired_capabilities</code> and discovered that Chrome does not support that technique any more.</p>
  
  <p>After much searching and reading I discovered that there was a new version of Selenium2library that had a new keyword <code>Create Webdriver</code> that is supposed to address this issue.</p>
  
  <p>I modified their example to suite my needs. But no matter what I do, it does not modify the user agent string.</p>
  
  <p>I get no errors, no warnings, no nothing, except a perfectly working browser without a modified user agent string.</p>
  
  <p>I tried to modify other options like <code>--start-maximized</code> with the same result, i.e. no result at all.</p>
  
  <p>Excerpt from keyword that opens Google Chrome and (allegedly) modifies the user agent string:</p>
  
  <pre>${options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()   sys, selenium.webdriver
  ${options.add_argument}=    Set Variable    user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 System/ComputerId" 
  Create WebDriver    Chrome  chrome_options=${options}   
  Go To   http://www.useragentstring.com</pre>
  
  <p>Fashioned after the example given here (at the bottom of the page):</p>
  
  <p><a href="https://github.com/rtomac/robotframework-selenium2library/issues/225" rel="nofollow">https://github.com/rtomac/robotframework-selenium2library/issues/225</a></p>
  
  <p>My software setup:</p>
  
  <ul>
  <li>Google Chrome 31.0.1650.59</li>
  <li>Selenium 2.39.0</li>
  <li>Selenium2library 1.5</li>
  <li>Robot Framework 2.8.3</li>
  <li>Robot Framework Ride 1.2.2</li>
  </ul>
  
  <p>So what is the problem?</p>