How would you disable the pop-up:

"Do you want Google Chrome to save your password for this site?"

I know it is due to upgrading my ChromeDriver to version 2.28. I have seen solutions recently but all for Java or C# and I am working with Ruby which acts slightly differently as it uses DesiredCapabilities directly.

I do not see the capability that I need from the list given here: https://sites.google.com/a/chromium.org/chromedriver/capabilities

I am trying to use a similar solution to one I found:

ChromeOptions cOpt = new ChromeOptions();
cOpt.AddUserProfilePreference("credentials_enable_service", false);
cOpt.AddUserProfilePreference("profile.password_manager_enabled", false);

Has anyone solved this issue for Ruby?

1 Answer 1


Try the following code:

prefs = {
  credentials_enable_service: false
Selenium::WebDriver.for(:remote, url: grid_url, :desired_capabilities => caps, prefs: prefs)
  • I hadn't but thankfully it just annoyed me and didn't affect my tests. That's done the trick for me, cheers
    – K-8
    Commented Apr 14, 2017 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.