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”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s