Getting a pop "Do you want Chrome to save your password" which is failing the tests. How to bypass it?

Getting pop “Do you want Chrome to save your password” which is failing the tests. How to bypass it?

Hi Alex,

To bypass it, you can use Chrome preference password_manager_enabled to bypass the pop up for automation tests.

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