Save password prompts in Chrome 57 with WebDriver

When running Selenium WebDriver scripts against the latest version of Chrome (57) it shows a save password prompt that hasn’t appeared previously whilst using Chromedriver, as far as I know.

chrome 57 save password prompt

Whilst this prompt doesn’t seem to directly impact automated tests from running, it’s easy to stop this from appearing by setting the credentials_enable_service to false as a Chrome user preference when starting Chrome from WebDriverJs:

options.setUserPreferences( { credentials_enable_service: false } );
let builder = new webdriver.Builder();
builder.setChromeOptions( options );
const driver = builder.forBrowser( 'chrome' ).build();

Once this has been set to false you should no longer see the save password prompt when running your tests πŸ˜€

Author: Alister Scott

Alister is a Software Quality Engineer from Brisbane, Australia.

One thought on “Save password prompts in Chrome 57 with WebDriver”

  1. You can also get rid of that message about Chrome being controlled by automated testing software but passing in `–disable-infobars` as a chrome argument.

Comments are closed.