WebDriver Chrome Browser: Avoid 'Do you want chrome to save your password' pop up

Mike picture Mike · Apr 30, 2013 · Viewed 11.4k times · Source

Every time my webdriver tests login into the application, 'Do you want chrome to save your password' pop up appears.. Is there a way to avoid this??

Please help.

Thanks, Mike

Answer

Karanvir Kang picture Karanvir Kang · Mar 10, 2017

You need to configure the following chrome driver options:

chromeOptions: {
            prefs: {
                'credentials_enable_service': false,
                'profile': {
                    'password_manager_enabled': false
                }
            }
        }