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 an Excellence Wrangler for Automattic.

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

Comments are closed.