Automated Testing Selenium WebDriver

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 😀

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

Leave a Reply

Your email address will not be published.