title: How can I disable save password popup in Selenium?
body: <p>I am using Selenium version 3.141.59 for Java and I would like to disable password popup while initializing the driver for Chrome and Firefox.</p>
  
  <p>I am using the Options syntax since the DesiredCapabilities alternative is now deprecated. My code look like this, but it is not working:</p>
  
  <ul>
  <li>Firefox</li>
  </ul>
  
  <pre class="lang-java prettyprint-override"><code>FirefoxOptions options = new FirefoxOptions();
  options.addPreference("signon.rememberSignons", false);
  webDriver = new FirefoxDriver(options);
  </code></pre>
  
  <ul>
  <li>Chrome</li>
  </ul>
  
  <pre class="lang-java prettyprint-override"><code>ChromeOptions chromeOptions = new ChromeOptions();
  chromeOptions.setExperimentalOption("credentials_enable_service", false);
  chromeOptions.setExperimentalOption("profile.password_manager_enabled", false);
  webDriver = new ChromeDriver(chromeOptions);
  </code></pre>
  
  <p>How can I add that option to the options object before creating the driver?</p>