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

前端 未结 8 1279
故里飘歌
故里飘歌 2020-12-11 01:07

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.

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 01:31

    You need to configure the following chrome driver options:

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

提交回复
热议问题