title: Robot Framework - pass chromeoption as desiredcapability
body: <p>I was able to make the following work in Java:</p>
  
  <pre><code>DesiredCapabilities capabilities = DesiredCapabilities.chrome();
  ChromeOptions options = new ChromeOptions();
  options.addArguments("--disable-extensions");
  capabilities.setCapability(ChromeOptions.CAPABILITY, options);
  ChromeDriver driver = new ChromeDriver(capabilities);
  driver.get("https://www.google.com");
  </code></pre>
  
  <p>Now, I am using the Java port of Selenium2Library for Robot Framework.
  How can I do something similar to the one above?
  I've tried the following:</p>
  
  <pre><code>${chrome_options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
  ${chrome_capabilities}=    Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.CHROME    sys, selenium.webdriver
  Call Method    ${chrome_options}    add_argument    disable-extensions
  Set To Dictionary    ${chrome_capabilities}    ChromeOptions.CAPABILITY=${chrome_options}
  Open Browser    https://www.google.com    Chrome    None    None        desired_capabilities=${chrome_capabilities}    None
  </code></pre>
  
  <p>There's a pop-up that appears every time I open a browser, that's why I need to disable chromeOptions. As mentioned above, I was able to make the pop-up disappear using the Java code. I just couldn't do the same with RF.</p>
  
  <p>Thanks for your help.</p>